summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2018-09-18 10:47:05 +0200
committerMartin Wortschack <mwortschack@gitlab.com>2018-09-18 10:47:05 +0200
commita7071deddcdfc01c6a9ade261569569882cdb955 (patch)
tree3881471b179b026f96ee0e888cd0d6a15d138e00
parent68ac430af9989fe4f93075e5bc426f8e2c55cf3d (diff)
downloadgitlab-ce-a7071deddcdfc01c6a9ade261569569882cdb955.tar.gz
Parse request.referer properly
-rw-r--r--app/controllers/admin/application_settings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/application_settings_controller.rb b/app/controllers/admin/application_settings_controller.rb
index c7692161e93..6beed4b7dd2 100644
--- a/app/controllers/admin/application_settings_controller.rb
+++ b/app/controllers/admin/application_settings_controller.rb
@@ -19,7 +19,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
session[:ask_for_usage_stats_consent] = current_user.requires_usage_stats_consent?
end
- redirect_path = request.referer.presence ? request.referer : admin_application_settings_path
+ redirect_path = request.referer.presence ? URI(request.referer).path : admin_application_settings_path
respond_to do |format|
if successful