diff options
author | Stan Hu <stanhu@gmail.com> | 2018-10-17 13:02:40 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-10-17 13:16:31 -0700 |
commit | 3d82f20d1bae1ba4f67a87d66828d65c7cef651d (patch) | |
tree | 62ef2be7ad7460883a2176aa3bb4001aff68026c /app/controllers/import | |
parent | c09de611ea9d8cbff7a1696ee63262ef65972daa (diff) | |
download | gitlab-ce-3d82f20d1bae1ba4f67a87d66828d65c7cef651d.tar.gz |
Strip whitespace around GitHub personal access tokens
Some browsers insert a trailing whitespace after pasting the
token into the field. This should help reduce confusion.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/46588
Diffstat (limited to 'app/controllers/import')
-rw-r--r-- | app/controllers/import/github_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/import/github_controller.rb b/app/controllers/import/github_controller.rb index 1dfa814cdd5..e3eec5a020d 100644 --- a/app/controllers/import/github_controller.rb +++ b/app/controllers/import/github_controller.rb @@ -20,7 +20,7 @@ class Import::GithubController < Import::BaseController end def personal_access_token - session[access_token_key] = params[:personal_access_token] + session[access_token_key] = params[:personal_access_token]&.strip redirect_to status_import_url end |