Skip to content

Commit

Permalink
Merge pull request #108 from webmin/dev/quotemeta-glob
Browse files Browse the repository at this point in the history
Fix to `quotemeta` variables in glob
  • Loading branch information
jcameron committed Nov 7, 2023
2 parents 0cb9bba + 5e1c270 commit 0c1e473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mailbox/mailbox-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ sub delete_folder
# Delete mbox or Maildir index
if ($folder->{'type'} == 0) {
my $ifile = &user_index_file($folder->{'file'});
unlink(glob("$ifile.*"), $ifile);
unlink(glob("\Q$ifile\E.*"), $ifile);
}
elsif ($folder->{'type'} == 1) {
my $cachefile = &get_maildir_cachefile($folder->{'file'});
Expand All @@ -1067,7 +1067,7 @@ sub delete_folder

# Delete sort index
my $ifile = &folder_new_sort_index_file($folder);
unlink(glob("$ifile.*"), $ifile);
unlink(glob("\Q$ifile\E.*"), $ifile);

# Delete sort direction file
my $file = &folder_name($folder);
Expand Down

0 comments on commit 0c1e473

Please sign in to comment.