# HG changeset patch # User paulb # Date 1095777854 0 # Node ID 459af9b33cd8b329f47a2cb69add5134f59b2b1d # Parent 78f1f3bdeeb584e3dbeb739413874929f44c4799 [project @ 2004-09-21 14:44:14 by paulb] Changed the deconstruction of the authentication token to be slightly more robust (although this was only an issue when Zope cookie values were not being converted back from URL-encoded representations). diff -r 78f1f3bdeeb5 -r 459af9b33cd8 WebStack/Resources/LoginRedirect.py --- a/WebStack/Resources/LoginRedirect.py Tue Sep 21 14:43:19 2004 +0000 +++ b/WebStack/Resources/LoginRedirect.py Tue Sep 21 14:44:14 2004 +0000 @@ -146,7 +146,7 @@ # Test the token from the cookie against a recreated token using the # given information. - username, code = cookie.value.split(":") + username = cookie.value.split(":")[0] if cookie.value == get_token(username, self.secret_key): # Update the transaction with the user details.