diff options
author | Mark Sapiro <msapiro@value.net> | 2011-11-26 11:03:58 -0800 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2011-11-26 11:03:58 -0800 |
commit | 7b1e42fb7c1d1bcd6ade862d105097ad715e7144 (patch) | |
tree | 5eef95910a4a3c21ed1092e4ad4bf25592ec7872 /Mailman | |
parent | f3a329f7968b5f4df0753bb876887432e30225db (diff) | |
download | mailman2-7b1e42fb7c1d1bcd6ade862d105097ad715e7144.tar.gz mailman2-7b1e42fb7c1d1bcd6ade862d105097ad715e7144.tar.xz mailman2-7b1e42fb7c1d1bcd6ade862d105097ad715e7144.zip |
Removed Python 2.5 dependency from fix for Bug #770377.
Diffstat (limited to '')
-rw-r--r-- | Mailman/SecurityManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py index 55536aa1..4f6aa34a 100644 --- a/Mailman/SecurityManager.py +++ b/Mailman/SecurityManager.py @@ -255,11 +255,11 @@ class SecurityManager: # The path to all Mailman stuff, minus the scheme and host, # i.e. usually the string `/mailman' parsed = urlparse(self.web_page_url) - path = parsed.path + path = parsed[2] c[key]['path'] = path # Make sure to set the 'secure' flag on the cookie if mailman is # accessed by an https url. - if parsed.scheme == 'https': + if parsed[0] == 'https': c[key]['secure'] = True # We use session cookies, so don't set `expires' or `max-age' keys. # Set the RFC 2109 required header. |