From 13f7bf9621a82d93f1e9dbd838d1e22020221bde Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 10 Jul 2022 16:51:57 -0700 Subject: [PATCH] Command to show in the UI should not be escaped, but the actual command must be --- software/apt-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/apt-lib.pl b/software/apt-lib.pl index 4f3b7dbde..d29ca175b 100755 --- a/software/apt-lib.pl +++ b/software/apt-lib.pl @@ -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 "",&text('apt_install', "$cmd"),"

\n"; +print "",&text('apt_install', "".&html_escape($uicmd).""),"

\n"; print "

";
 &additional_log('exec', undef, $cmd);