diff options
| author | bwarsaw | 1999-11-26 23:01:36 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-11-26 23:01:36 +0000 |
| commit | ed5047a9a991d0d5ef67a64f261e6f4949cbc75f (patch) | |
| tree | 3fc00db77a0c04de1224c77b8abf1e89a27ae499 /Mailman/SecurityManager.py | |
| parent | de852392ec9719b6e8145dd815747aac6ffdc29f (diff) | |
| download | mailman-ed5047a9a991d0d5ef67a64f261e6f4949cbc75f.tar.gz mailman-ed5047a9a991d0d5ef67a64f261e6f4949cbc75f.tar.zst mailman-ed5047a9a991d0d5ef67a64f261e6f4949cbc75f.zip | |
Diffstat (limited to 'Mailman/SecurityManager.py')
| -rw-r--r-- | Mailman/SecurityManager.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Mailman/SecurityManager.py b/Mailman/SecurityManager.py index 97f81b459..83204f887 100644 --- a/Mailman/SecurityManager.py +++ b/Mailman/SecurityManager.py @@ -112,11 +112,13 @@ class SecurityManager: # the list that we expect. The kludge given here (slightly modified) # was initially provided by Evaldas Auryla <evaldas.auryla@pheur.org> # -## self.LogMsg('debug', 'Browser Cookie: ' + cookiedata) keylen = len(key) - if cookiedata[keylen+1] <> '"' and cookiedata[-1] <> '"': - cookiedata = key + '="' + cookiedata[keylen+1:] + '"' -## self.LogMsg('debug', 'Using Cookie: ' + cookiedata) + try: + if cookiedata[keylen+1] <> '"' and cookiedata[-1] <> '"': + cookiedata = key + '="' + cookiedata[keylen+1:] + '"' + except IndexError: + # cookiedata got truncated somehow; just let it fail normally + pass c = Cookie.Cookie(cookiedata) if not c.has_key(key): return 0 |
