diff options
author | Stan Hu <stanhu@gmail.com> | 2017-04-04 23:09:04 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-04-04 23:12:08 -0700 |
commit | 54849afc6c94fbc16b0b320741cadafb272deb9d (patch) | |
tree | 53a5f5994229f87ddbfab7645ef81b203431dd38 /changelogs | |
parent | ced322c5f6de61c30794140a08fa45b612474850 (diff) | |
download | gitlab-ce-54849afc6c94fbc16b0b320741cadafb272deb9d.tar.gz |
Handle SSH keys that have multiple spaces between each marker
Notice what happens when a user adds a key with a space in between:
```
irb(main):004:0> 'ssh-rsa foobar'.split(/ /)
=> ["ssh-rsa", "", "foobar"]
```
This would cause gitlab-shell to receive a blank argument for the actual
key, leading to users unable to login.
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-fix-ssh-keys-with-spaces.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-fix-ssh-keys-with-spaces.yml b/changelogs/unreleased/sh-fix-ssh-keys-with-spaces.yml new file mode 100644 index 00000000000..fe75d7e1156 --- /dev/null +++ b/changelogs/unreleased/sh-fix-ssh-keys-with-spaces.yml @@ -0,0 +1,4 @@ +--- +title: Handle SSH keys that have multiple spaces between each marker +merge_request: +author: |