summaryrefslogtreecommitdiff
path: root/app/controllers/profiles
diff options
context:
space:
mode:
authorJohannes Schleifenbaum <johannes@js-webcoding.de>2014-02-11 19:15:13 +0100
committerJohannes Schleifenbaum <johannes@js-webcoding.de>2014-02-11 19:24:23 +0100
commitf10153818b51da7ee4e691cea308dd8964d908c9 (patch)
tree102a2b88fe9f029a2c4ef3cb6b3e1a1c5ab8a338 /app/controllers/profiles
parent39aeac71b34648d8c691ff36f577bdacbd3e362f (diff)
downloadgitlab-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.rb2
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