Skip to content

Commit

Permalink
Encode url search parameter when performing query (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
maeb authored Jul 7, 2021
1 parent 096850b commit 843fe28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywb/static/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function clearFilters(event) {
}

function performQuery(url) {
var query = [window.wb_prefix + '*?url=' + url];
var query = [window.wb_prefix + '*?url=' + encodeURIComponent(url)];
var filterExpressions = document.getElementById(elemIds.filtering.list)
.children;
if (filterExpressions.length) {
Expand Down

0 comments on commit 843fe28

Please sign in to comment.