diff options
author | stroucki <stroucki@andrew.cmu.edu> | 2016-11-23 19:52:55 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-24 08:52:55 +0800 |
commit | 3a3782bb7fed768c1e832ff4c0a77f2f5281ed05 (patch) | |
tree | e943b540fbd6b9de6fbdca0373040acf095b513a /routers/api/v1/repo | |
parent | cb1602840c5206da91be477a73f45b437fa43c8f (diff) | |
download | gitea-3a3782bb7fed768c1e832ff4c0a77f2f5281ed05.tar.gz gitea-3a3782bb7fed768c1e832ff4c0a77f2f5281ed05.zip |
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 indentation
Diffstat (limited to 'routers/api/v1/repo')
0 files changed, 0 insertions, 0 deletions