commit 0bc2331cbe8136d25a1ba5e2b5b15bac4e950f68 Author: Iain R. Learmonth irl@fsfe.org Date: Tue Nov 21 17:28:06 2017 +0000
Fixes encoding of search query parameter (Fixes: #24311) --- js/views/search/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/js/views/search/main.js b/js/views/search/main.js index d5142c2..1eb0a83 100644 --- a/js/views/search/main.js +++ b/js/views/search/main.js @@ -20,14 +20,12 @@ define([ });
$("#do-search").bind('click', function(){ - var query = _.escape($('#query').val()); - document.location = "#search/"+query; + document.location = "#search/"+encodeURI($('#query').val()); return false; });
$("#home-search").bind('submit', function(){ - var query = _.escape($('#query').val()); - document.location = "#search/"+query; + document.location = "#search/"+encodeURI($('#query').val()); return false; }); }
tor-commits@lists.torproject.org