[Zope-PAS] CookieAuthHelper.py Patch

Willi Langenberger wlang at wu-wien.ac.at
Tue Sep 28 18:43:02 EDT 2004


Attached is a small patch for CookieAuthHelper.py (wrong spelling of a
variable). I've also put it into the collector...


\wlang{}

-- 
Willi.Langenberger at wu-wien.ac.at                Fax: +43/1/31336/9207
Zentrum fuer Informatikdienste, Wirtschaftsuniversitaet Wien, Austria

-----included file follows-----

$ diff -U9 CookieAuthHelper.py.ori CookieAuthHelper.py
--- CookieAuthHelper.py.ori     2004-09-28 01:06:32.000000000 +0200
+++ CookieAuthHelper.py 2004-09-28 16:34:06.000000000 +0200
@@ -169,19 +169,19 @@
     def unauthorized(self):
         resp = self.REQUEST['RESPONSE']
         # If we set the auth cookie before, delete it now.
         if resp.cookies.has_key(self.cookie_name):
             del resp.cookies[self.cookie_name]
 
         # Redirect if desired.
         url = self.getLoginURL()
         if url is not None:
-            response.redirect(url)
+            resp.redirect(url)
             return 1
 
         # Could not challenge.
         return 0


     security.declarePrivate('getLoginURL')
     def getLoginURL(self):
         """ Where to send people for logging in """


More information about the Zope-PAS mailing list