We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0d1493 commit 1000465Copy full SHA for 1000465
actionpack/lib/action_controller/metal/redirecting.rb
@@ -83,7 +83,7 @@ def redirect_to(options = {}, response_options = {})
83
raise ActionControllerError.new("Cannot redirect to nil!") unless options
84
raise AbstractController::DoubleRenderError if response_body
85
86
- allow_other_host = response_options.key?(:allow_other_host) ? response_options.delete(:allow_other_host) : _allow_other_host
+ allow_other_host = response_options.delete(:allow_other_host) { _allow_other_host }
87
88
self.status = _extract_redirect_to_status(options, response_options)
89
self.location = _enforce_open_redirect_protection(_compute_redirect_to_location(request, options), allow_other_host: allow_other_host)
0 commit comments