diff options
author | tkikuchi <> | 2004-11-25 12:36:51 +0000 |
---|---|---|
committer | tkikuchi <> | 2004-11-25 12:36:51 +0000 |
commit | ec710133c967b7e0183ed900883de15b941475dd (patch) | |
tree | 4affe2cc042641fa13effc07a6b01fa1019217b4 | |
parent | c8c9975858dca76cf824605900995f75bf0b9120 (diff) | |
download | mailman2-ec710133c967b7e0183ed900883de15b941475dd.tar.gz mailman2-ec710133c967b7e0183ed900883de15b941475dd.tar.xz mailman2-ec710133c967b7e0183ed900883de15b941475dd.zip |
We have to escape other special characters like '=', so use urllib.
-rw-r--r-- | Mailman/SecurityManager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py index b8707c1d..8a38863b 100644 --- a/Mailman/SecurityManager.py +++ b/Mailman/SecurityManager.py @@ -53,6 +53,7 @@ import time import Cookie import marshal import binascii +import urllib from types import StringType, TupleType from urlparse import urlparse @@ -103,7 +104,8 @@ class SecurityManager: # A bad system error raise TypeError, 'No user supplied for AuthUser context' secret = self.getMemberPassword(user) - key += 'user+%s' % Utils.ObscureEmail(user).replace('/','%2f') + userdata = urllib.quote(Utils.ObscureEmail(user), safe='') + key += 'user+%s' % userdata elif authcontext == mm_cfg.AuthListModerator: secret = self.mod_password key += 'moderator' |