From fd2cf2da1efbead064828c04dd2453c2f337532a Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 29 Nov 2013 15:14:36 -0800 Subject: [PATCH] Split auth on first colon Upstream-commit: a37b155384401e8b2bed635251440b0feb6bcdbc Component: engine --- components/engine/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/auth/auth.go b/components/engine/auth/auth.go index 9acd00df61..62d8e7f522 100644 --- a/components/engine/auth/auth.go +++ b/components/engine/auth/auth.go @@ -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") }