[query-param] Change decode/encodeURI to URIComponent

This commit is contained in:
Joxit 2017-09-06 23:32:10 +02:00
parent 06e4d62543
commit ca5fb09fc6

View file

@ -96,11 +96,11 @@ registryUI.getUrlQueryParam = function () {
}; };
registryUI.encodeURI = function(url) { registryUI.encodeURI = function(url) {
return url.indexOf('&') < 0 ? window.encodeURI(url) : btoa(url); return url.indexOf('&') < 0 ? window.encodeURIComponent(url) : btoa(url);
}; };
registryUI.decodeURI = function(url) { registryUI.decodeURI = function(url) {
return url.startsWith('http') ? window.decodeURI(url) : atob(url); return url.startsWith('http') ? window.decodeURIComponent(url) : atob(url);
}; };
registryUI.isImageRemoveActivated = true; registryUI.isImageRemoveActivated = true;