method
normalize_relative_action_path
v7.2.3 -
Show latest stable
- Class:
ActionController::RequestForgeryProtection
normalize_relative_action_path(rel_action_path)private
No documentation available.
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 647
def normalize_relative_action_path(rel_action_path) # :doc:
uri = URI.parse(request.path)
# add the action path to the request.path
uri.path += "/#{rel_action_path}"
# relative path with "./path"
uri.path.gsub!("/./", "/")
uri.path.chomp("/")
end