method
_handle_path_relative_redirect
v8.1.1 -
Show latest stable
- Class:
ActionController::Redirecting
_handle_path_relative_redirect(url)private
No documentation available.
# File actionpack/lib/action_controller/metal/redirecting.rb, line 327
def _handle_path_relative_redirect(url)
message = "Path relative URL redirect detected: #{url.inspect}"
case action_on_path_relative_redirect
when :log
logger&.warn message
when :notify
ActiveSupport::Notifications.instrument("unsafe_redirect.action_controller",
url: url,
message: message,
stack_trace: caller
)
when :raise
raise PathRelativeRedirectError.new(url)
end
end