method
normalize_action_path
v8.1.1 -
Show latest stable
- Class:
ActionController::RequestForgeryProtection
normalize_action_path(action_path)private
No documentation available.
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 645
def normalize_action_path(action_path)
uri = URI.parse(action_path)
if uri.relative? && (action_path.blank? || !action_path.start_with?("/"))
normalize_relative_action_path(uri.path)
else
uri.path.chomp("/")
end
end