Skip to content

Commit

Permalink
Fix to quotemeta variables in glob
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Nov 6, 2023
1 parent 0cb9bba commit 5e1c270
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 5e1c270

Please sign in to comment.