mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-29 08:29:54 +03:00
[query-param] Change decode/encodeURI to URIComponent
This commit is contained in:
parent
06e4d62543
commit
ca5fb09fc6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue