Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #10717 - Escape result of admin_media_prefix template tag.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 73d636f74091930af82d0fb44169f9e3fd6fa45a 1 parent bacfe3f
@jezdez jezdez authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/admin/templatetags/adminmedia.py
View
3  django/contrib/admin/templatetags/adminmedia.py
@@ -1,4 +1,5 @@
from django.template import Library
+from django.utils.encoding import iri_to_uri
register = Library()
@@ -10,5 +11,5 @@ def admin_media_prefix():
from django.conf import settings
except ImportError:
return ''
- return settings.ADMIN_MEDIA_PREFIX
+ return iri_to_uri(settings.ADMIN_MEDIA_PREFIX)
admin_media_prefix = register.simple_tag(admin_media_prefix)

0 comments on commit 73d636f

Please sign in to comment.
Something went wrong with that request. Please try again.