Improved special character handling in manticore and URL query.

This commit is contained in:
2024-04-01 01:50:24 +02:00
parent 56e9d07b85
commit 6f371499d3
7 changed files with 21 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ function getQuery(data) {
const curatedQuery = Object.fromEntries(Object.entries(data).map(([key, value]) => (value === undefined ? null : [key, value])).filter(Boolean));
return `?${encodeURI(decodeURIComponent(new URLSearchParams(curatedQuery).toString()))}`; // recode so commas aren't encoded
return `?${new URLSearchParams(curatedQuery).toString()}`; // recode so commas aren't encoded
}
function showFeedback(isSuccess, options = {}, errorMessage) {