diff options
| author | bwarsaw | 2001-10-04 14:31:48 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-04 14:31:48 +0000 |
| commit | 9b6672583e6e4c022a3e638d4bcd5bec9c7d1a69 (patch) | |
| tree | 342384aa9c23efc0c49c2fdfb05d2b0568229588 /Mailman/SecurityManager.py | |
| parent | 912ae063f5e7e1408940a1ab93136c7a4da99b9e (diff) | |
| download | mailman-9b6672583e6e4c022a3e638d4bcd5bec9c7d1a69.tar.gz mailman-9b6672583e6e4c022a3e638d4bcd5bec9c7d1a69.tar.zst mailman-9b6672583e6e4c022a3e638d4bcd5bec9c7d1a69.zip | |
AuthContextInfo(): Python's standard Cookie.py doesn't allow colons in
the key. It's strictly interpreting the relevant RFC. We may
change Cookie.py to be more relaxed, but instead of trying to
maintain our own copy of this file, we'll just change the
separator to be a `+' intead of a `:' -- Cookie.py seems happy
with this.
Diffstat (limited to 'Mailman/SecurityManager.py')
| -rw-r--r-- | Mailman/SecurityManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py index 58c5a2137..1704a2402 100644 --- a/Mailman/SecurityManager.py +++ b/Mailman/SecurityManager.py @@ -91,13 +91,13 @@ class SecurityManager: # AuthUser, but the user isn't a member of this mailing list, raise a # MMNotAMemberError error. If the user's secret is None, raise a # MMBadUserError. - key = self.internal_name() + ':' + key = self.internal_name() + '+' if authcontext == mm_cfg.AuthUser: if user is None: # A bad system error raise TypeError, 'No user supplied for AuthUser context' secret = self.getMemberPassword(user) - key += 'user:%s' % user + key += 'user+%s' % user elif authcontext == mm_cfg.AuthListModerator: secret = self.mod_password key += 'moderator' |
