﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2657	[patch] Add carriage return quote in django.utils.text.javascript_quote	Alex Dedul	Adrian Holovaty	"\r should be also quoted, at least firefox interprets it as a new line and this breaks javascript. Patch is trivial


{{{
Index: django/utils/text.py
===================================================================
--- django/utils/text.py    (revision 3722)
+++ django/utils/text.py    (working copy)
@@ -104,6 +104,7 @@
     elif type(s) != unicode:
         raise TypeError, s
     s = s.replace('\\', '\\\\')
+    s = s.replace('\r', '\\r')
     s = s.replace('\n', '\\n')
     s = s.replace('\t', '\\t')
     s = s.replace(""'"", ""\\'"")
}}}
"	defect	closed	Core (Other)		normal	fixed			Unreviewed	1	0	0	0	0	0
