server: fix problems with escaping

This commit is contained in:
rr-
2017-01-21 00:12:28 +01:00
parent 1acceb941d
commit 6b42d787a7
3 changed files with 6 additions and 5 deletions

View File

@ -24,11 +24,11 @@ function formatApiLink(...values) {
}
function escapeParam(text) {
return encodeURIComponent(text).replace(/%/g, '$');
return encodeURIComponent(text);
}
function unescapeParam(text) {
return decodeURIComponent(text.replace(/\$/g, '%'));
return decodeURIComponent(text);
}
function formatClientLink(...values) {