From 7b1e42fb7c1d1bcd6ade862d105097ad715e7144 Mon Sep 17 00:00:00 2001
From: Mark Sapiro <msapiro@value.net>
Date: Sat, 26 Nov 2011 11:03:58 -0800
Subject: Removed Python 2.5 dependency from fix for Bug #770377.

---
 Mailman/SecurityManager.py | 4 ++--
 1 file 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.
-- 
cgit v1.2.3