Merged r23469 from trunk to 6.0-stable (#41930).

git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23470 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-01-28 08:27:41 +00:00
parent 7346fc2174
commit 65749092d9

View File

@@ -511,7 +511,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