mirror of https://github.com/calzoneman/sync.git
Fix MOTD XSS filter stripping style tags
This commit is contained in:
parent
9be513221e
commit
33e5f2e056
|
@ -1,3 +1,6 @@
|
||||||
|
Sun Oct 20 20:02 2013 CDT
|
||||||
|
* lib/channel.js: Fix MOTD XSS filter stripping style tags
|
||||||
|
|
||||||
Sat Oct 19 12:20 2013 CDT
|
Sat Oct 19 12:20 2013 CDT
|
||||||
* lib/channel.js: Remove some unnecessary packets
|
* lib/channel.js: Remove some unnecessary packets
|
||||||
|
|
||||||
|
|
|
@ -2139,9 +2139,9 @@ Channel.prototype.trySetJS = function(user, data) {
|
||||||
Channel.prototype.updateMotd = function(motd) {
|
Channel.prototype.updateMotd = function(motd) {
|
||||||
var html = motd.replace(/\n/g, "<br>");
|
var html = motd.replace(/\n/g, "<br>");
|
||||||
// Temporary fix
|
// Temporary fix
|
||||||
html = html.replace("style", "stlye");
|
html = html.replace(/style/g, "stlye");
|
||||||
html = sanitize(html).xss();
|
html = sanitize(html).xss();
|
||||||
html = html.replace("stlye", "style");
|
html = html.replace(/stlye/g, "style");
|
||||||
//html = this.filterMessage(html);
|
//html = this.filterMessage(html);
|
||||||
this.motd = {
|
this.motd = {
|
||||||
motd: motd,
|
motd: motd,
|
||||||
|
|
Loading…
Reference in New Issue