From 8321e54f17dac2d9bbf21fef94db9211dbfa86f4 Mon Sep 17 00:00:00 2001 From: Michael Langfermann Date: Mon, 18 Feb 2019 14:49:38 +0100 Subject: [PATCH] Fix encoding issues with the search prompt 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. --- flamegraph.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flamegraph.pl b/flamegraph.pl index 60669bf2..5b911611 100755 --- a/flamegraph.pl +++ b/flamegraph.pl @@ -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);