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.
1 parent b8e4640 commit 2cd7460Copy full SHA for 2cd7460
actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -637,10 +637,10 @@ def normalize_action_path(action_path) # :doc:
637
uri = URI.parse(action_path)
638
639
if uri.relative? && (action_path.blank? || !action_path.start_with?("/"))
640
- return normalize_relative_action_path(uri.path)
+ normalize_relative_action_path(uri.path)
641
+ else
642
+ uri.path.chomp("/")
643
end
-
- uri.path.chomp("/")
644
645
646
def normalize_relative_action_path(rel_action_path) # :doc:
0 commit comments