Skip to content

Commit

Permalink
Fix to treat variables as literals in glob
Browse files Browse the repository at this point in the history
(protect from any spaces and other special characters)
  • Loading branch information
iliajie committed Nov 6, 2023
1 parent be124be commit b9023a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/file-manager/delete.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ foreach my $name (@entries_list) {
my $tfile;
if (!$mkpathr && -f "$tdir/$name" && -r "$tdir/$name") {
$tfile = "$tdir/$name-$time";
} elsif (!$mkpathr && glob("$tdir/$name/*")) {
} elsif (!$mkpathr && glob("\Q$tdir/$name\E/*")) {
$tfile = "$tdir/$name-$time";
&$mkpath_($tdir);
}
Expand Down

0 comments on commit b9023a8

Please sign in to comment.