Allow colon characters in passwords (fixes #1308)
This commit is contained in:
parent
151f82c593
commit
bcdf00f85e
@ -275,7 +275,7 @@ class Application(object):
|
|||||||
authorization = \
|
authorization = \
|
||||||
authorization.lstrip("Basic").strip().encode("ascii")
|
authorization.lstrip("Basic").strip().encode("ascii")
|
||||||
user, password = self.decode(
|
user, password = self.decode(
|
||||||
base64.b64decode(authorization), environ).split(":")
|
base64.b64decode(authorization), environ).split(":", 1)
|
||||||
else:
|
else:
|
||||||
user = password = None
|
user = password = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user