[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=2118
[commit: http://hg.dwscoalition.org/dw-free/rev/e1dfd2b9d5a0]
http://bugs.dwscoalition.org/show_bug.cgi?id=2118
Do not allow line/paragraph separator characters (Unicode) in data that goes
through ejs.
Patch by
alierak.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2118
Do not allow line/paragraph separator characters (Unicode) in data that goes
through ejs.
Patch by
Files modified:
- cgi-bin/ljtextutil.pl
--------------------------------------------------------------------------------
diff -r f556da37351a -r e1dfd2b9d5a0 cgi-bin/ljtextutil.pl
--- a/cgi-bin/ljtextutil.pl Sun Jan 10 16:46:03 2010 +0000
+++ b/cgi-bin/ljtextutil.pl Mon Jan 11 00:09:53 2010 +0000
@@ -211,6 +211,7 @@ sub ejs
$a =~ s/"/\\"/g;
$a =~ s/\r?\n/\\n/gs;
$a =~ s/\r//gs;
+ $a =~ s/\xE2\x80[\xA8\xA9]//gs;
return $a;
}
--------------------------------------------------------------------------------
