diff options
| author | viega | 1998-06-03 03:41:03 +0000 |
|---|---|---|
| committer | viega | 1998-06-03 03:41:03 +0000 |
| commit | 68a00adcfbe78d40d0754cdec4777a7c2a5e2af3 (patch) | |
| tree | 590ee4ac0ce3ba441e98f486273ec9dc519bfbae | |
| parent | 18427cf8d1da60d3f242017aea3689d2be5ffee6 (diff) | |
| download | mailman-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-x | cgi/admin | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |
