Skip to content

Commit 134e4b7

Browse files
committed
Merge pull request #514 from dlorenc/master
Handle passwords with ':' characters.
2 parents 39ee598 + c4cb509 commit 134e4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/auth/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def decode_auth(auth):
9292
if isinstance(auth, six.string_types):
9393
auth = auth.encode('ascii')
9494
s = base64.b64decode(auth)
95-
login, pwd = s.split(b':')
95+
login, pwd = s.split(b':', 1)
9696
return login.decode('ascii'), pwd.decode('ascii')
9797

9898

0 commit comments

Comments
 (0)