Ticket #16684: django_forms_forms.py.diff

File django_forms_forms.py.diff, 645 bytes (added by dtrebbien, 4 years ago)

Patch

  • django/forms/forms.py

    class BaseForm(StrAndUnicode): 
    153153                # CSS classes applied.
    154154                css_classes = bf.css_classes()
    155155                if css_classes:
    156                     html_class_attr = ' class="%s"' % css_classes
     156                    html_class_attr = ' class="%s"' % conditional_escape(css_classes)
    157157
    158158                if errors_on_separate_row and bf_errors:
    159159                    output.append(error_row % force_unicode(bf_errors))
Back to Top