diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2014-07-16 12:21:46 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2014-07-16 12:21:51 -0300 |
commit | 341698ed40e023898d9f9d1f5c163d4d2cab4832 (patch) | |
tree | a504da696d4b30fd3776c8315f38db030f5be525 /actionpack/lib/action_controller/metal | |
parent | 2f93aa0d2b304b804853b100174a7ac47a1c4dd5 (diff) | |
download | rails-341698ed40e023898d9f9d1f5c163d4d2cab4832.tar.gz rails-341698ed40e023898d9f9d1f5c163d4d2cab4832.tar.bz2 rails-341698ed40e023898d9f9d1f5c163d4d2cab4832.zip |
Don't accept parameters as argument for redirect to [via @homakov]
Closes #16170
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/redirecting.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index 3feb737277..ca8c0278d0 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -68,6 +68,7 @@ module ActionController # <tt>ActionController::RedirectBackError</tt>. def redirect_to(options = {}, response_status = {}) #:doc: raise ActionControllerError.new("Cannot redirect to nil!") unless options + raise ActionControllerError.new("Cannot redirect to a parameter hash!") if options.is_a?(ActionController::Parameters) raise AbstractController::DoubleRenderError if response_body self.status = _extract_redirect_to_status(options, response_status) |