diff options
author | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2014-02-11 19:15:13 +0100 |
---|---|---|
committer | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2014-02-11 19:24:23 +0100 |
commit | f10153818b51da7ee4e691cea308dd8964d908c9 (patch) | |
tree | 102a2b88fe9f029a2c4ef3cb6b3e1a1c5ab8a338 /app/controllers/profiles | |
parent | 39aeac71b34648d8c691ff36f577bdacbd3e362f (diff) | |
download | gitlab-ce-f10153818b51da7ee4e691cea308dd8964d908c9.tar.gz |
Split the user ssh keys by newline, not the characters "\n"
before:
GET /user.keys
ssh-rsa ...\nssh-rsa ...\nssh-rsa ...
after:
GET /user.keys
ssh-rsa ...
ssh-rsa ...
sha-rsa ...
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/keys_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/keys_controller.rb b/app/controllers/profiles/keys_controller.rb index e8237a1f227..b4f14e649e2 100644 --- a/app/controllers/profiles/keys_controller.rb +++ b/app/controllers/profiles/keys_controller.rb @@ -41,7 +41,7 @@ class Profiles::KeysController < ApplicationController begin user = User.find_by_username(params[:username]) if user.present? - render text: user.all_ssh_keys.join('\n') + render text: user.all_ssh_keys.join("\n") else render_404 and return end |