Skip to content

Commit e122629

Browse files
committed
Don't escape safe symbols in packages names, in particular dashes and dots webmin/authentic-theme#1411
1 parent f0ab457 commit e122629

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

software/apt-lib.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ sub update_system_install
2222
# Build the command to run
2323
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
2424
$update = join(" ", map { quotemeta($_) } split(/\s+/, $update));
25+
$update =~ s/\\(-)|\\(.)/$1$2/g;
2526
local $cmd = "$apt_get_command -y ".($force ? " -f" : "")." install $update";
2627
print "<b>",&text('apt_install', "<tt>$cmd</tt>"),"</b><p>\n";
2728
print "<pre>";

0 commit comments

Comments
 (0)