diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-19 11:05:48 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-19 16:18:06 -0500 |
| commit | e233f357bd463df519ca5cd01106f1f59fb5733d (patch) | |
| tree | ec407a3474c4987e0ddd84809c9085235c2c3fa5 /django/templatetags | |
| parent | cc0bb07013ed3e7ec58ee6da014ed3094a1a350f (diff) | |
Refs #25484 -- Removed incorrect unquoting in {% static %}.
Regression in 374e6230ca9f9bb84cc9dd760dfb6395fbb5ff0f.
Thanks Florian Apolloner for the report and analysis.
Diffstat (limited to 'django/templatetags')
| -rw-r--r-- | django/templatetags/static.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/templatetags/static.py b/django/templatetags/static.py index 41e6c581ba..0f46fa33da 100644 --- a/django/templatetags/static.py +++ b/django/templatetags/static.py @@ -2,7 +2,7 @@ from django import template from django.apps import apps from django.utils.encoding import iri_to_uri from django.utils.html import conditional_escape -from django.utils.six.moves.urllib.parse import unquote, urljoin +from django.utils.six.moves.urllib.parse import urljoin register = template.Library() @@ -102,7 +102,7 @@ class StaticNode(template.Node): return self.handle_simple(path) def render(self, context): - url = unquote(self.url(context)) + url = self.url(context) if context.autoescape: url = conditional_escape(url) if self.varname is None: |
