Allow colon characters in passwords (fixes #1308)

This commit is contained in:
Guillaume Ayoub 2013-01-31 17:27:23 +01:00
parent 151f82c593
commit bcdf00f85e

View File

@ -275,7 +275,7 @@ class Application(object):
authorization = \
authorization.lstrip("Basic").strip().encode("ascii")
user, password = self.decode(
base64.b64decode(authorization), environ).split(":")
base64.b64decode(authorization), environ).split(":", 1)
else:
user = password = None