[Checkins] SVN: Products.PluggableAuthService/branches/1.6/Products/PluggableAuthService/plugins/CookieAuthHelper.py Fixed my fix of earlier today in CookieAuthHelper.extractCredentials by making sure we do not return a half filled dictionary when the password decode fails.
Maurits van Rees
m.van.rees at zestsoftware.nl
Thu Aug 12 15:49:33 EDT 2010
Log message for revision 115659:
Fixed my fix of earlier today in CookieAuthHelper.extractCredentials by making sure we do not return a half filled dictionary when the password decode fails.
Changed:
U Products.PluggableAuthService/branches/1.6/Products/PluggableAuthService/plugins/CookieAuthHelper.py
-=-
Modified: Products.PluggableAuthService/branches/1.6/Products/PluggableAuthService/plugins/CookieAuthHelper.py
===================================================================
--- Products.PluggableAuthService/branches/1.6/Products/PluggableAuthService/plugins/CookieAuthHelper.py 2010-08-12 19:48:31 UTC (rev 115658)
+++ Products.PluggableAuthService/branches/1.6/Products/PluggableAuthService/plugins/CookieAuthHelper.py 2010-08-12 19:49:33 UTC (rev 115659)
@@ -130,7 +130,7 @@
creds['password'] = password.decode('hex')
except TypeError:
# Cookie is in a different format, so it is not ours
- return creds
+ return {}
if creds:
creds['remote_host'] = request.get('REMOTE_HOST', '')
More information about the checkins
mailing list