[Zope-CVS] CVS: Products/CookieCrumbler - CHANGES.txt:1.13 CookieCrumbler.py:1.20

Shane Hathaway shane at zope.com
Thu Sep 11 12:51:46 EDT 2003


Update of /cvs-repository/Products/CookieCrumbler
In directory cvs.zope.org:/tmp/cvs-serv2759

Modified Files:
	CHANGES.txt CookieCrumbler.py 
Log Message:
Added bug fix from Richard Jones.

credentialsChanged() was generating cookies that weren't very tasty.


=== Products/CookieCrumbler/CHANGES.txt 1.12 => 1.13 ===
--- Products/CookieCrumbler/CHANGES.txt:1.12	Tue Jul  1 12:42:25 2003
+++ Products/CookieCrumbler/CHANGES.txt	Thu Sep 11 11:51:44 2003
@@ -5,6 +5,9 @@
   header to work around MSIE's irrational handling of the Cache-Control
   header.  See MS knowledge base article #316431.
 
+- The credentialsChanged() method was generating an incorrect cookie.
+  Thanks to Richard Jones for finding this elusive bug.
+
 
 Version 1.1
 


=== Products/CookieCrumbler/CookieCrumbler.py 1.19 => 1.20 ===
--- Products/CookieCrumbler/CookieCrumbler.py:1.19	Tue Jul  1 12:42:25 2003
+++ Products/CookieCrumbler/CookieCrumbler.py	Thu Sep 11 11:51:44 2003
@@ -230,7 +230,7 @@
 
     security.declarePublic('credentialsChanged')
     def credentialsChanged(self, user, name, pw):
-        ac = encodestring('%s:%s' % (name, pw))
+        ac = encodestring('%s:%s' % (name, pw)).rstrip()
         method = self.getCookieMethod( 'setAuthCookie'
                                        , self.defaultSetAuthCookie )
         resp = self.REQUEST['RESPONSE']




More information about the Zope-CVS mailing list