diff options
| -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: |
