[prev in list] [next in list] [prev in thread] [next in thread]
List: mailman-developers
Subject: Re: [Mailman-Developers] cookie problem ?
From: Harald Meland <Harald.Meland () usit ! uio ! no>
Date: 1999-07-22 7:33:35
[Download RAW message or body]
[Gergely Madarasz]
> Btw I thought it should be enough to set the base url in the general
> options section.
Oops... you're right, the cookie's path should be based on the URL
path[1] of self.web_page_url instead of the global default
mm_cfg.DEFAULT_URL. Here's a quick patch to do this:
Index: SecurityManager.py
===================================================================
RCS file: /export/public/cvsroot/mailman/Mailman/SecurityManager.py,v
retrieving revision 1.21
diff -u -r1.21 SecurityManager.py
--- SecurityManager.py 1999/07/16 22:40:28 1.21
+++ SecurityManager.py 1999/07/22 07:27:15
@@ -95,7 +95,7 @@
c = Cookie.Cookie()
c[key] = [client_ip, issued, expires, mac]
# place in oven,
- path = urlparse(mm_cfg.DEFAULT_URL)[2] # '/mailman'
+ path = urlparse(self.web_page_url)[2] # '/mailman'
c[key]['path'] = path
# and bake until golden brown
c[key]['expires'] = mm_cfg.ADMIN_COOKIE_LIFE
[1] I don't know what else to call the part of an URL with
proto://hostname stripped off the front, and anything from "?" and
to the end of the string removed as well.
--
Harald
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic