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.
2 parents 51603e3 + 17ecda0 commit a701cebCopy full SHA for a701ceb
actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -642,7 +642,7 @@ def valid_request_origin? # :doc:
642
end
643
644
645
- def normalize_action_path(action_path) # :doc:
+ def normalize_action_path(action_path)
646
uri = URI.parse(action_path)
647
648
if uri.relative? && (action_path.blank? || !action_path.start_with?("/"))
@@ -652,7 +652,7 @@ def normalize_action_path(action_path) # :doc:
652
653
654
655
- def normalize_relative_action_path(rel_action_path) # :doc:
+ def normalize_relative_action_path(rel_action_path)
656
uri = URI.parse(request.path)
657
# add the action path to the request.path
658
uri.path += "/#{rel_action_path}"
0 commit comments