Skip to content

Commit

Permalink
Use encodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Apr 26, 2024
1 parent 67475c1 commit ceb0cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function submitForm(pushState) {
},
query = Object.keys(params)
.filter(param => params[param])
.map(param => param + '=' + params[param])
.map(param => param + '=' + encodeURIComponent(params[param]))
.join('&');

if (pushState) {
Expand Down

0 comments on commit ceb0cb9

Please sign in to comment.