Fix + character not handled correctly in query URL

This commit is contained in:
WithoutPants 2022-10-12 16:36:02 +11:00 committed by GitHub
parent 5e1948516d
commit 6dcb1279a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,9 @@ export class ListFilterModel {
} else {
searchTerm = params.q;
}
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
searchTerm = searchTerm.replaceAll("+", " ");
params.q = decodeURIComponent(searchTerm);
}
if (params.c !== undefined) {