summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-20 01:37:57 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-11-20 01:37:57 +0000
commit2e9e36e29744ca638ca34799d79a6eb638a2d822 (patch)
treef02d8abeac243473a809af18954895f5291435b0 /django/template
parentab69710de4abde6bbfa382cdb7ab27e5082b6a5d (diff)
Fixed #5983 -- Made iriencode filter respect safe strings. Patch from
SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template')
-rw-r--r--django/template/defaultfilters.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index 7d4a72efb3..76d723e0eb 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -106,6 +106,7 @@ floatformat.is_safe = True
def iriencode(value):
"""Escapes an IRI value for use in a URL."""
return force_unicode(iri_to_uri(value))
+iriencode.is_safe = True
iriencode = stringfilter(iriencode)
def linenumbers(value, autoescape=None):