split->partition, thanks Ricardo
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.4.2-stable+timestamp.2013.03.11.14.22.04
|
||||
Version 2.4.2-stable+timestamp.2013.03.11.14.27.56
|
||||
|
||||
+2
-2
@@ -1789,8 +1789,8 @@ class Auth(object):
|
||||
if basic_auth_realm:
|
||||
raise http_401
|
||||
return (True, False, False)
|
||||
(username, password) = base64.b64decode(basic[6:]).split(':')
|
||||
is_valid_user = self.login_bare(username, password)
|
||||
(username, sep, password) = base64.b64decode(basic[6:]).partition(':')
|
||||
is_valid_user = sep and self.login_bare(username, password)
|
||||
if not is_valid_user and basic_auth_realm:
|
||||
raise http_401
|
||||
return (True, True, is_valid_user)
|
||||
|
||||
Reference in New Issue
Block a user