aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2012-02-07 09:05:07 -0800
committerJosé Valim <jose.valim@plataformatec.com.br>2012-02-07 09:05:07 -0800
commitf3595b5924c5d6245fb97c1ce13b3400ca11b1c8 (patch)
treeb2cc9b2cd63664214bc2c5b7c40dcc265661fd6c /actionpack/lib/action_controller
parent8c7378aae81cc1ceabb41c197bccd68f535b9833 (diff)
parent0e482b3681c688c9e4d0d379166a3d76cf0a52ae (diff)
downloadrails-f3595b5924c5d6245fb97c1ce13b3400ca11b1c8.tar.gz
rails-f3595b5924c5d6245fb97c1ce13b3400ca11b1c8.tar.bz2
rails-f3595b5924c5d6245fb97c1ce13b3400ca11b1c8.zip
Merge pull request #4916 from rmm5t/fix_force_ssl_redirect_with_params
Fixed force_ssl redirects to include original query params
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/force_ssl.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/force_ssl.rb b/actionpack/lib/action_controller/metal/force_ssl.rb
index 0fd42f9d8a..7a0ede02a2 100644
--- a/actionpack/lib/action_controller/metal/force_ssl.rb
+++ b/actionpack/lib/action_controller/metal/force_ssl.rb
@@ -29,6 +29,7 @@ module ActionController
if !request.ssl? && !Rails.env.development?
redirect_options = {:protocol => 'https://', :status => :moved_permanently}
redirect_options.merge!(:host => host) if host
+ redirect_options.merge!(:params => request.query_parameters)
redirect_to redirect_options
end
end