mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00: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:
parent
7ccf349e36
commit
55d6b59b61
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user