Do not allow line/paragraph separator characters (Unicode) in data that 
goes through ejs.

        Patch by alierak. 

diffs (11 lines):

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;
 }
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to