mirror of https://github.com/go-gitea/gitea
Handle ssh key import better (#224)
* Handle user ssh key input better ssh_key: when user submitted keys had a newline at the end, strings.Split would have created a slice with an empty last element, and the key type check would be incorrect. Perhaps a better way is to look for 'ssh-rsa' or 'ssh-dsa' at the beginning of the string, but this is simple. * ssh_key: correct indentationpull/230/head
parent
cb1602840c
commit
3a3782bb7f
Loading…
Reference in new issue