Merge "Break user credentials from host at the rightmost '@'"

This commit is contained in:
Jenkins 2017-04-03 16:25:47 +00:00 committed by Gerrit Code Review
commit 62a9370607

View File

@ -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)