mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2010-01-11 12:09 am

[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 [personal profile] alierak.

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;
 }
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org