From ceb0cb950a894e07ec9b0a5e348b41286fba53d6 Mon Sep 17 00:00:00 2001 From: Brandon Fowler Date: Fri, 26 Apr 2024 03:35:31 -0400 Subject: [PATCH] Use encodeURIComponent --- static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.js b/static/index.js index af79ce5..6b8b804 100644 --- a/static/index.js +++ b/static/index.js @@ -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) {