Skip to content

Commit 86c1a4d

Browse files
committed
Prefer decode_uri_component
1 parent c41a3b7 commit 86c1a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automerge-check.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def check_json_urls_from_content(filename, content, allowed_prefixes)
9191
def canonicalize_url(url)
9292
uri = URI.parse(url)
9393
if uri.path
94-
decoded_path = URI.decode_www_form_component(uri.path)
94+
decoded_path = URI.decode_uri_component(uri.path)
9595
uri.path = File.expand_path(decoded_path)
9696
end
9797
uri.to_s

0 commit comments

Comments
 (0)