From d185f601d3f441a3371b5978daeeb2cd616ca7e1 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 12 Sep 2015 16:58:18 -0400 Subject: #1622 comment with whitespace --- models/publickey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') diff --git a/models/publickey.go b/models/publickey.go index ad92d64f..6c0ffc0c 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -153,7 +153,7 @@ func parseKeyString(content string) (string, error) { if len(lines) == 1 { // Parse openssh format - parts := strings.Fields(lines[0]) + parts := strings.SplitN(lines[0], " ", 3) switch len(parts) { case 0: return "", errors.New("Empty key") -- cgit v1.2.3