mirror of
https://github.com/redmine/redmine.git
synced 2026-02-27 17:11:20 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user