mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: Properly whitelist li styles
This commit is contained in:
parent
8e395a94d4
commit
9d232dac9a
@ -178,6 +178,6 @@
|
||||
Discourse.Markdown.whiteListTag("a", "class", /^button (cast-votes|toggle-results)/);
|
||||
|
||||
Discourse.Markdown.whiteListTag("li", "data-*");
|
||||
Discourse.Markdown.whiteListTag("li", "style");
|
||||
Discourse.Markdown.whiteListTag("li", "style", /^(color=#?\w+;)?(background=#?\w+;)?$/);
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user