From c4cb50927730c3aac4f03ff591632afa0923d547 Mon Sep 17 00:00:00 2001 From: dlorenc Date: Tue, 3 Mar 2015 14:51:17 -0800 Subject: [PATCH] Handle passwords with ':' characters. Signed-off-by: dlorenc --- docker/auth/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/auth/auth.py b/docker/auth/auth.py index e38f9c7ac2..d69c035068 100644 --- a/docker/auth/auth.py +++ b/docker/auth/auth.py @@ -92,7 +92,7 @@ def decode_auth(auth): if isinstance(auth, six.string_types): auth = auth.encode('ascii') s = base64.b64decode(auth) - login, pwd = s.split(b':') + login, pwd = s.split(b':', 1) return login.decode('ascii'), pwd.decode('ascii')