mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 08:09:55 -04:00
Merge pull request #3471 from riking/style-inject
FIX: Properly whitelist li styles
This commit is contained in:
commit
cb09c0d7a5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue