Allow style attr because people keep bitchin about it

This commit is contained in:
Calvin Montgomery 2013-07-09 21:50:57 -04:00
parent bd6ff20ae6
commit d4d6fb6686
1 changed files with 6 additions and 0 deletions

View File

@ -1608,7 +1608,10 @@ Channel.prototype.tryUpdateFilter = function(user, f) {
var re = f.source;
var flags = f.flags;
// Temporary fix
f.replace = f.replace.replace("style", "stlye");
f.replace = sanitize(f.replace).xss();
f.replace = f.replace.replace("stlye", "style");
try {
new RegExp(re, flags);
}
@ -1711,7 +1714,10 @@ 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 = sanitize(html).xss();
html = html.replace("stlye", "style");
//html = this.filterMessage(html);
this.motd = {
motd: motd,