mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
js: Only encode new params in utils.addUrlParams()
This commit is contained in:
parent
3db65d79c6
commit
fdd14c96b1
@ -133,7 +133,7 @@
|
|||||||
|
|
||||||
$.each(params, function (key, value) {
|
$.each(params, function (key, value) {
|
||||||
// We overwrite existing params
|
// We overwrite existing params
|
||||||
newparams[key] = value;
|
newparams[encodeURIComponent(key)] = encodeURIComponent(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Object.keys(newparams).length) {
|
if (Object.keys(newparams).length) {
|
||||||
@ -143,9 +143,9 @@
|
|||||||
queryString += '&';
|
queryString += '&';
|
||||||
}
|
}
|
||||||
|
|
||||||
queryString += encodeURIComponent(key);
|
queryString += key;
|
||||||
if (value !== null) {
|
if (value !== null) {
|
||||||
queryString += '=' + encodeURIComponent(value);
|
queryString += '=' + value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
result += queryString;
|
result += queryString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user