aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2011-11-26 11:03:58 -0800
committerMark Sapiro <msapiro@value.net>2011-11-26 11:03:58 -0800
commit7b1e42fb7c1d1bcd6ade862d105097ad715e7144 (patch)
tree5eef95910a4a3c21ed1092e4ad4bf25592ec7872
parentf3a329f7968b5f4df0753bb876887432e30225db (diff)
downloadmailman2-7b1e42fb7c1d1bcd6ade862d105097ad715e7144.tar.gz
mailman2-7b1e42fb7c1d1bcd6ade862d105097ad715e7144.tar.xz
mailman2-7b1e42fb7c1d1bcd6ade862d105097ad715e7144.zip
Removed Python 2.5 dependency from fix for Bug #770377.
-rw-r--r--Mailman/SecurityManager.py4
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.