mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-24 08:07:17 +00:00
Merge pull request #2959 from crosbymichael/fix-auth-split
Split auth on first colon
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ func decodeAuth(authStr string) (string, string, error) {
|
||||
if n > decLen {
|
||||
return "", "", fmt.Errorf("Something went wrong decoding auth config")
|
||||
}
|
||||
arr := strings.Split(string(decoded), ":")
|
||||
arr := strings.SplitN(string(decoded), ":", 2)
|
||||
if len(arr) != 2 {
|
||||
return "", "", fmt.Errorf("Invalid auth configuration file")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user