mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: improve URL escaping
Specifically, cater for /, + and % in URL components.
This commit is contained in:
@ -165,7 +165,7 @@ function formatUrlParameters(dict) {
|
||||
continue;
|
||||
}
|
||||
if (value) {
|
||||
result.push(`${key}=${value}`);
|
||||
result.push(`${key}=${encodeURIComponent(value)}`);
|
||||
}
|
||||
}
|
||||
return result.join(';');
|
||||
|
Reference in New Issue
Block a user