--
Felix Schwarz
Dipl.-Informatiker
Gubener Str. 38
10243 Berlin
Germany
www.schwarz.eu - software development and consulting
Strip the userline from the htpasswd file
diff -r 0894a74ac239 authority/checkers/checkers.py
--- a/authority/checkers/checkers.py Wed Mar 12 16:50:27 2008 +0100
+++ b/authority/checkers/checkers.py Wed Mar 12 18:00:44 2008 +0100
@@ -68,7 +68,7 @@ class HtpasswdChecker(AuthenticationChec
self.authdict = {}
authfile = open(self.authfilename, 'r')
for userline in authfile:
- user, passwdhash = userline.split(':')
+ user, passwdhash = userline.strip().split(':')
self.authdict[user] = passwdhash
authfile.close()
@@ -124,4 +124,4 @@ class SMBChecker(AuthenticationChecker):
def initialize_storage(self):
raise NotImplementedError
-
\ No newline at end of file
+