mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Command to show in the UI should not be escaped, but the actual command must be
This commit is contained in:
@ -21,10 +21,10 @@ local (@rv, @newpacks);
|
||||
|
||||
# Build the command to run
|
||||
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
|
||||
local $uicmd = "$apt_get_command -y ".($force ? " -f" : "")." install $update";
|
||||
$update = join(" ", map { quotemeta($_) } split(/\s+/, $update));
|
||||
$update =~ s/\\(-)|\\(.)/$1$2/g;
|
||||
local $cmd = "$apt_get_command -y ".($force ? " -f" : "")." install $update";
|
||||
print "<b>",&text('apt_install', "<tt>$cmd</tt>"),"</b><p>\n";
|
||||
print "<b>",&text('apt_install', "<tt>".&html_escape($uicmd)."</tt>"),"</b><p>\n";
|
||||
print "<pre>";
|
||||
&additional_log('exec', undef, $cmd);
|
||||
|
||||
|
Reference in New Issue
Block a user