mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-05 03:16:35 +00:00
[query-param] Change decode/encodeURI to URIComponent
This commit is contained in:
@@ -96,11 +96,11 @@ registryUI.getUrlQueryParam = function () {
|
||||
};
|
||||
|
||||
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) {
|
||||
return url.startsWith('http') ? window.decodeURI(url) : atob(url);
|
||||
return url.startsWith('http') ? window.decodeURIComponent(url) : atob(url);
|
||||
};
|
||||
|
||||
registryUI.isImageRemoveActivated = true;
|
||||
|
||||
Reference in New Issue
Block a user