summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-12 16:58:18 -0400
committerUnknwon <u@gogs.io>2015-09-12 16:58:18 -0400
commitd185f601d3f441a3371b5978daeeb2cd616ca7e1 (patch)
treedde8716f77af5116d6f31cea7a61f2ca87f98f45 /models
parentaff773f1b968b601a02d48cca071c7e96a22ca52 (diff)
downloadgitea-d185f601d3f441a3371b5978daeeb2cd616ca7e1.tar.gz
gitea-d185f601d3f441a3371b5978daeeb2cd616ca7e1.zip
#1622 comment with whitespace
Diffstat (limited to 'models')
-rw-r--r--models/publickey.go2
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")