summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorviega1998-06-03 03:41:03 +0000
committerviega1998-06-03 03:41:03 +0000
commit68a00adcfbe78d40d0754cdec4777a7c2a5e2af3 (patch)
tree590ee4ac0ce3ba441e98f486273ec9dc519bfbae
parent18427cf8d1da60d3f242017aea3689d2be5ffee6 (diff)
downloadmailman-68a00adcfbe78d40d0754cdec4777a7c2a5e2af3.tar.gz
mailman-68a00adcfbe78d40d0754cdec4777a7c2a5e2af3.tar.zst
mailman-68a00adcfbe78d40d0754cdec4777a7c2a5e2af3.zip
Whoops, the try block only needs to go around the one line that
can throw that error.
-rwxr-xr-xcgi/admin4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/admin b/cgi/admin
index 44505dcaf..e9a096933 100755
--- a/cgi/admin
+++ b/cgi/admin
@@ -21,7 +21,7 @@
To run stand-alone for debugging, set env var PATH_INFO to name of list
and, optionally, options category."""
-__version__ = "$Revision: 686 $"
+__version__ = "$Revision: 687 $"
import sys
import os, cgi, string, crypt, types, time
@@ -102,9 +102,9 @@ def isAuthenticated(list, password=None, SECRET="SECRET"):
if c.has_key(list_name + "-admin"):
try:
inp = base64.decodestring(c[list_name + "-admin"].value)
- check = md5.new(SECRET+list_name+SECRET).digest()
except Error: # the decodestring may return incorrect padding?
return 0
+ check = md5.new(SECRET+list_name+SECRET).digest()
if inp == check:
return 1
else: