Merge "Break user credentials from host at the rightmost '@'"
This commit is contained in:
commit
62a9370607
@ -437,7 +437,7 @@ class TransportURL(object):
|
||||
username = password = port = None
|
||||
|
||||
if '@' in host:
|
||||
username, hostname = host.split('@', 1)
|
||||
username, hostname = host.rsplit('@', 1)
|
||||
if ':' in username:
|
||||
username, password = username.split(':', 1)
|
||||
password = parse.unquote(password)
|
||||
|
Loading…
Reference in New Issue
Block a user