From 20c6ba6ffa9d68cad21fcfbdcb1a7d72eaee143c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 18 Jun 2015 15:46:15 -0400 Subject: Fixed #24962 -- Added newline to characters escaped by contrib.admin.utils.quote() Thanks alito for the report and patch. --- django/contrib/admin/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/contrib/admin/utils.py b/django/contrib/admin/utils.py index 2d8c4b9d00..c8b59b3892 100644 --- a/django/contrib/admin/utils.py +++ b/django/contrib/admin/utils.py @@ -68,7 +68,7 @@ def quote(s): res = list(s) for i in range(len(res)): c = res[i] - if c in """:/_#?;@&=+$,"[]<>%\\""": + if c in """:/_#?;@&=+$,"[]<>%\n\\""": res[i] = '_%02X' % ord(c) return ''.join(res) -- cgit v1.3