Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8041 -- Modified media rendering to return safe strings. Thank…

…s to Daniel Pope <dan@mauveinternet.co.uk> for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4ecc5f490a5c8a72dfab7b1fd00bdcfe782557ea 1 parent 2e08591
Russell Keith-Magee authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/widgets.py
2  django/forms/widgets.py
@@ -50,7 +50,7 @@ def __unicode__(self):
50 50
         return self.render()
51 51
         
52 52
     def render(self):
53  
-        return u'\n'.join(chain(*[getattr(self, 'render_' + name)() for name in MEDIA_TYPES]))
  53
+        return mark_safe(u'\n'.join(chain(*[getattr(self, 'render_' + name)() for name in MEDIA_TYPES])))
54 54
         
55 55
     def render_js(self):
56 56
         return [u'<script type="text/javascript" src="%s"></script>' % self.absolute_path(path) for path in self._js]

0 notes on commit 4ecc5f4

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