------------------------------------------------------------
revno: 1330
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.1
timestamp: Sat 2011-11-26 11:03:58 -0800
message:
  Removed Python 2.5 dependency from fix for Bug #770377.
modified:
  Mailman/SecurityManager.py


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/SecurityManager.py'
--- Mailman/SecurityManager.py	2011-04-26 20:57:37 +0000
+++ Mailman/SecurityManager.py	2011-11-26 19:03:58 +0000
@@ -255,11 +255,11 @@
         # 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.

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to