Skip to content

Commit 30307c5

Browse files
authored
Merge pull request #223259 from Homebrew/snakeviz-escape-fix
snakeviz: use correct URL escaping method
2 parents 05ed549 + 3b3e763 commit 30307c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Formula/s/snakeviz.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def install
4242
exec bin/"snakeviz", "--port", port.to_s, "--server", output_file
4343
end
4444
sleep 3
45-
output = shell_output("curl -s http://localhost:#{port}/snakeviz/#{CGI.escape output_file}")
45+
output = shell_output("curl -s http://localhost:#{port}/snakeviz/#{ERB::Util.url_encode output_file}")
4646
assert_match "cProfile", output
4747
ensure
4848
Process.kill("HUP", pid)

0 commit comments

Comments
 (0)