diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/publickey.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/publickey.go b/models/publickey.go index ad92d64fec..6c0ffc0c78 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") |