1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/routing
Jose and Yehuda 56cdc81c08 Remove default match without specified method
In the current router DSL, using the +match+ DSL
method will match all verbs for the path to the
specified endpoint.

In the vast majority of cases, people are
currently using +match+ when they actually mean
+get+. This introduces security implications.

This commit disallows calling +match+ without
an HTTP verb constraint by default. To explicitly
match all verbs, this commit also adds a
:via => :all option to +match+.

Closes #5964
2012-04-24 22:52:26 -05:00
..
mapper.rb Remove default match without specified method 2012-04-24 22:52:26 -05:00
polymorphic_routes.rb Improve cache on route_key lookup. 2011-12-08 19:53:16 +01:00
redirection.rb Fix formatting 2012-04-18 15:10:02 +02:00
route_set.rb Refactor hash creation in routeset 2012-04-24 09:53:51 -03:00
routes_proxy.rb Override respond_to? since we are also overriding method_missing. 2012-01-03 20:26:45 +01:00
url_for.rb Revert "Merge pull request #5750 from ahoward/master" 2012-04-08 22:44:37 -03:00