diff options
author | MattBlack85 <promat85@gmail.com> | 2014-02-15 18:55:33 +0100 |
---|---|---|
committer | Baptiste Mispelon <bmispelon@gmail.com> | 2014-02-15 19:39:21 +0100 |
commit | 1c1dffca757b0b6acaf99d893d68847250ab4146 (patch) | |
tree | b4e1eaf22943204ecc2f3e1fd8d9b80e0df796ce /django/utils/text.py | |
parent | 44814e78ccd3a54da41c1b77ba3504c648ef4e89 (diff) | |
download | django-1c1dffca757b0b6acaf99d893d68847250ab4146.tar.gz |
Fixed #21725 -- Fixed JavaScript quoting encoding.
Thanks to nedbatchelder for the report.
Diffstat (limited to 'django/utils/text.py')
-rw-r--r-- | django/utils/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index d277cee56b..9e0afad47b 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -343,7 +343,7 @@ def javascript_quote(s, quote_double_quotes=False): s = s.replace('</', '<\\/') if quote_double_quotes: s = s.replace('"', '"') - return str(ustring_re.sub(fix, s)) + return ustring_re.sub(fix, s) javascript_quote = allow_lazy(javascript_quote, six.text_type) # Expression to match some_token and some_token="with spaces" (and similarly |