Skip to content

Commit

Permalink
Fix encoding issues with the search prompt
Browse files Browse the repository at this point in the history
In Firefox and Chrome, the string returned from prompt is already
encoded. I couldn't find any formal specification on this behaviour at
first glance. This should definitely be tested on other browsers.
  • Loading branch information
versable committed Feb 18, 2019
1 parent 0eb6b9f commit 8321e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flamegraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ sub flow {
function parse_params(params) {
var uri = "?";
for (var key in params) {
uri += key + '=' + encodeURIComponent(params[key]) + '&';
uri += key + '=' + params[key] + '&';
}
if (uri.slice(-1) == "&")
uri = uri.substring(0, uri.length - 1);
Expand Down

0 comments on commit 8321e54

Please sign in to comment.