Ticket #6160: 00-validation-error-escape.diff
File 00-validation-error-escape.diff, 510 bytes (added by , 17 years ago) |
---|
-
django/newforms/util.py
=== modified file 'django/newforms/util.py'
40 40 def as_ul(self): 41 41 if not self: return u'' 42 42 return mark_safe(u'<ul class="errorlist">%s</ul>' 43 % ''.join([u'<li>%s</li>' % force_unicode(e) for e in self]))43 % ''.join([u'<li>%s</li>' % escape(force_unicode(e)) for e in self])) 44 44 45 45 def as_text(self): 46 46 if not self: return u''