client/general: improve URL escaping

Specifically, cater for /, + and % in URL components.
This commit is contained in:
rr-
2016-09-04 01:25:19 +02:00
parent a22fe306d1
commit 7fa8593b0a
15 changed files with 39 additions and 26 deletions

View File

@ -165,7 +165,7 @@ function formatUrlParameters(dict) {
continue;
}
if (value) {
result.push(`${key}=${value}`);
result.push(`${key}=${encodeURIComponent(value)}`);
}
}
return result.join(';');