mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use a URL instead of an URL everywhere
This commit is contained in:
parent
914e2002d8
commit
6d133a482a
3 changed files with 3 additions and 3 deletions
|
@ -289,7 +289,7 @@ module ActionDispatch
|
|||
if last.permitted?
|
||||
args.pop.to_h
|
||||
else
|
||||
raise ArgumentError, "Generating an URL from non sanitized request parameters is insecure!"
|
||||
raise ArgumentError, "Generating a URL from non sanitized request parameters is insecure!"
|
||||
end
|
||||
end
|
||||
helper.call self, args, options
|
||||
|
|
|
@ -173,7 +173,7 @@ module ActionDispatch
|
|||
route_name)
|
||||
when ActionController::Parameters
|
||||
unless options.permitted?
|
||||
raise ArgumentError.new("Generating an URL from non sanitized request parameters is insecure!")
|
||||
raise ArgumentError.new("Generating a URL from non sanitized request parameters is insecure!")
|
||||
end
|
||||
route_name = options.delete :use_route
|
||||
_routes.url_for(options.to_h.symbolize_keys.
|
||||
|
|
|
@ -310,7 +310,7 @@ class RedirectTest < ActionController::TestCase
|
|||
error = assert_raise(ArgumentError) do
|
||||
get :redirect_to_params
|
||||
end
|
||||
assert_equal "Generating an URL from non sanitized request parameters is insecure!", error.message
|
||||
assert_equal "Generating a URL from non sanitized request parameters is insecure!", error.message
|
||||
end
|
||||
|
||||
def test_redirect_to_with_block
|
||||
|
|
Loading…
Reference in a new issue