diff options
author | Go MAEDA <maeda@farend.jp> | 2025-01-28 08:24:52 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2025-01-28 08:24:52 +0000 |
commit | 55d6b59b61ac99b049893dd11fa286edc95bfbd3 (patch) | |
tree | 53554e6a9e39bd2069bfb8580404f2aa6db049b9 | |
parent | 7ccf349e36daf81af53a24dedec8dd62e3e44e43 (diff) | |
download | redmine-55d6b59b61ac99b049893dd11fa286edc95bfbd3.tar.gz redmine-55d6b59b61ac99b049893dd11fa286edc95bfbd3.zip |
Simplify URL components omission in ApplicationController#verify_back_url (#41930).
git-svn-id: https://svn.redmine.org/redmine/trunk@23469 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 83b30d45d..074392709 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -513,7 +513,7 @@ class ApplicationController < ActionController::Base end end # Remove unnecessary components to convert the URL into a relative URL - uri.omit!(:scheme, :userinfo, :host, :port) + uri.omit!(:scheme, :authority) rescue Addressable::URI::InvalidURIError return false end |