Fixed URI encoding

This commit is contained in:
bergware
2021-12-18 17:08:12 +01:00
parent 4518f02997
commit 73ecaf6e24
3 changed files with 4 additions and 4 deletions
@@ -195,7 +195,7 @@ function checkAll() {
function updateAll() {
$('input[type=button]').prop('disabled',true);
var ct = '';
for (var i=0,d; d=docker[i]; i++) if (d.update==1) ct += '&ct[]='+encodeURI(d.name);
for (var i=0,d; d=docker[i]; i++) if (d.update==1) ct += '&ct[]='+encodeURIComponent(d.name);
var cmd = '/plugins/dynamix.docker.manager/include/CreateDocker.php?updateContainer=true'+ct;
popupWithIframe(_('Updating all Containers'), cmd, true, 'loadlist');
}
@@ -203,6 +203,6 @@ function rebuildAll() {
$('input[type=button]').prop('disabled',true);
$('div.spinner.fixed').show('slow');
var ct = [];
for (var i=0,d; d=docker[i]; i++) if (d.update==2) ct.push(encodeURI(d.name));
for (var i=0,d; d=docker[i]; i++) if (d.update==2) ct.push(encodeURIComponent(d.name));
$.get('/plugins/dynamix.docker.manager/include/CreateDocker.php',{updateContainer:true,mute:true,ct},function(){loadlist();});
}