instance method
normalize_action_path
Ruby on Rails 7.2.3
Since v5.2.8.1 PrivateSignature
normalize_action_path(action_path)
No documentation comment.
Parameters
-
action_pathreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 637
def normalize_action_path(action_path) # :doc:
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
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 637
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection