summaryrefslogtreecommitdiff
path: root/Mailman/SecurityManager.py
diff options
context:
space:
mode:
authortkikuchi2006-11-13 12:29:34 +0000
committertkikuchi2006-11-13 12:29:34 +0000
commit367f816c741607f3b8e0846fc13abaf60374a909 (patch)
tree544914b399ec530bfa94318aab5d0bd611b74cb9 /Mailman/SecurityManager.py
parent425a8297a9987800f62cf61d47a916d026028864 (diff)
downloadmailman-367f816c741607f3b8e0846fc13abaf60374a909.tar.gz
mailman-367f816c741607f3b8e0846fc13abaf60374a909.tar.zst
mailman-367f816c741607f3b8e0846fc13abaf60374a909.zip
Diffstat (limited to 'Mailman/SecurityManager.py')
-rw-r--r--Mailman/SecurityManager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py
index eb7676835..14b699594 100644
--- a/Mailman/SecurityManager.py
+++ b/Mailman/SecurityManager.py
@@ -95,7 +95,7 @@ class SecurityManager:
# AuthUser, but the user isn't a member of this mailing list, a
# NotAMemberError will be raised. If the user's secret is None, raise
# a MMBadUserError.
- key = self.internal_name() + '+'
+ key = urllib.quote(self.fqdn_listname) + '+'
if authcontext == Defaults.AuthUser:
if user is None:
# A bad system error
@@ -236,7 +236,7 @@ class SecurityManager:
# way to do it -- the original uri that's proxied to us is not
# included in the backend request. XXX what happens when Apache 2.2's
# ProxyPassReverseCookiePath is set?
- target = '/%s/%s' % (os.environ['SCRIPT_NAME'], self.fqdn_listname)
+ target = '%s/%s' % (os.environ['SCRIPT_NAME'], self.fqdn_listname)
referer = os.environ.get('HTTP_REFERER')
if not referer:
return target
@@ -305,7 +305,7 @@ class SecurityManager:
usernames = [user]
else:
usernames = []
- prefix = self.internal_name() + '+user+'
+ prefix = urllib.quote(self.fqdn_listname) + '+user+'
for k in c.keys():
if k.startswith(prefix):
usernames.append(k[len(prefix):])