summaryrefslogtreecommitdiff
path: root/Mailman/SecurityManager.py
diff options
context:
space:
mode:
authorbwarsaw2002-01-29 19:09:32 +0000
committerbwarsaw2002-01-29 19:09:32 +0000
commitac82736ef1105d06d8d831681f921d1453f08dec (patch)
tree9fbf1fe8f3000da017092c9d34898ce27175591f /Mailman/SecurityManager.py
parent83e85695bf4410954a05493e312ba60e927b2d21 (diff)
downloadmailman-ac82736ef1105d06d8d831681f921d1453f08dec.tar.gz
mailman-ac82736ef1105d06d8d831681f921d1453f08dec.tar.zst
mailman-ac82736ef1105d06d8d831681f921d1453f08dec.zip
Diffstat (limited to 'Mailman/SecurityManager.py')
-rw-r--r--Mailman/SecurityManager.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py
index 9d62bef4b..1a42460ef 100644
--- a/Mailman/SecurityManager.py
+++ b/Mailman/SecurityManager.py
@@ -263,7 +263,10 @@ class SecurityManager:
# decoding as necessary. By using SimpleCookie, we prevent any kind
# of security breach due to untrusted cookie data being unpickled
# (which is quite unsafe).
- c = Cookie.SimpleCookie(cookiedata)
+ try:
+ c = Cookie.SimpleCookie(cookiedata)
+ except Cookie.CookieError:
+ return 0
# If the user was not supplied, but the authcontext is AuthUser, we
# can try to glean the user address from the cookie key. There may be
# more than one matching key (if the user has multiple accounts