forked from forgejo/forgejo
#1622 comment with whitespace
This commit is contained in:
parent
aff773f1b9
commit
d185f601d3
4 changed files with 13 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue