Fix MOTD XSS filter stripping style tags
This commit is contained in:
parent
9be513221e
commit
33e5f2e056
2 changed files with 5 additions and 2 deletions
|
|
@ -2139,9 +2139,9 @@ Channel.prototype.trySetJS = function(user, data) {
|
|||
Channel.prototype.updateMotd = function(motd) {
|
||||
var html = motd.replace(/\n/g, "<br>");
|
||||
// Temporary fix
|
||||
html = html.replace("style", "stlye");
|
||||
html = html.replace(/style/g, "stlye");
|
||||
html = sanitize(html).xss();
|
||||
html = html.replace("stlye", "style");
|
||||
html = html.replace(/stlye/g, "style");
|
||||
//html = this.filterMessage(html);
|
||||
this.motd = {
|
||||
motd: motd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue