From 2bcfedb4297dc10c2a346d264345ddfab918f47e Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 16 Feb 2001 04:42:07 +0000 Subject: CheckSiteAdminPassword(): Typo that should have chopped off all but the trailing newline actually left nothing but the trailing newline! Caught by Ron Jarrell. --- Mailman/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailman/Utils.py b/Mailman/Utils.py index a14ff8947..b54fee7ba 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -410,7 +410,7 @@ def SetSiteAdminPassword(pw): def CheckSiteAdminPassword(response): try: fp = open(mm_cfg.SITE_PW_FILE) - challenge = fp.read()[-1] # strip off trailing nl + challenge = fp.read()[:-1] # strip off trailing nl fp.close() except IOError, e: if e.errno <> errno.ENOENT: raise -- cgit v1.3.1