Commit Graph

2 Commits

Author SHA1 Message Date
Leon Klingele 5c944617d0 fix(calendar(js)): escape CSS selector names
SOGo uses the name of calendar categories verbatim to construct a CSS
selector without escaping characters such as "/". This patch ensures
those selector names are properly escaped so calendar categories
applied to a calendar event match the according selector and appear
in the correct color.

This patch makes use of the CSS escape API which is supported by all
major browsers. See https://caniuse.com/mdn-api_css_escape.

Also see https://mathiasbynens.be/notes/css-escapes.
2023-05-10 17:07:49 +02:00
Francis Lachapelle 3a61903e7f (js) Add sg-category-stylesheet directive
Fixes #3816
2016-09-28 12:03:11 -04:00