Ignore trailing blank lines in form data, since some browsers
strip these inside <input type="hidden"> - Legacy-Id: 923
This commit is contained in:
parent
0baf363e84
commit
9f0f77c5bd
|
@ -141,7 +141,9 @@ class Wizard( object ):
|
|||
if bf.data is None:
|
||||
d = ''
|
||||
else:
|
||||
d = bf.data
|
||||
# Hidden inputs strip trailing carraige returns
|
||||
# so we exclude those from the hash.
|
||||
d = bf.data.rstrip("\r\n")
|
||||
data.append((bf.name, d))
|
||||
data.append(settings.SECRET_KEY)
|
||||
# Use HIGHEST_PROTOCOL because it's the most efficient. It requires
|
||||
|
|
Loading…
Reference in a new issue