mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +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) {
|
||||
// We overwrite existing params
|
||||
newparams[key] = value;
|
||||
newparams[encodeURIComponent(key)] = encodeURIComponent(value);
|
||||
});
|
||||
|
||||
if (Object.keys(newparams).length) {
|
||||
@ -143,9 +143,9 @@
|
||||
queryString += '&';
|
||||
}
|
||||
|
||||
queryString += encodeURIComponent(key);
|
||||
queryString += key;
|
||||
if (value !== null) {
|
||||
queryString += '=' + encodeURIComponent(value);
|
||||
queryString += '=' + value;
|
||||
}
|
||||
});
|
||||
result += queryString;
|
||||
|
Loading…
x
Reference in New Issue
Block a user