Ignore trailing blank lines in form data, since some browsers

strip these inside <input type="hidden">
 - Legacy-Id: 923
This commit is contained in:
Bill Fenner 2007-09-05 15:38:59 +00:00
parent 0baf363e84
commit 9f0f77c5bd

View file

@ -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