Ticket #10034: formwizard_10034.diff

File formwizard_10034.diff, 493 bytes (added by Kevin Kubasik, 15 years ago)
  • django/contrib/formtools/utils.py

    diff --git a/django/contrib/formtools/utils.py b/django/contrib/formtools/utils.py
    index a357255..0c56859 100644
    a b def security_hash(request, form, *args):  
    1616    hash of that.
    1717    """
    1818
    19     data = [(bf.name, bf.field.clean(bf.data) or '') for bf in form]
     19    data = [(bf.name, bf.field.clean(bf.data).strip() or '') for bf in form]
    2020    data.extend(args)
    2121    data.append(settings.SECRET_KEY)
    2222
Back to Top