fixed a problem with preg_match when mailbox delimiter is "/"
This commit is contained in:
parent
0691e83458
commit
ac4448bf2c
1 changed files with 6 additions and 1 deletions
|
@ -468,7 +468,12 @@ function sqimap_mailbox_list($imap_stream) {
|
|||
$used[$k] = true;
|
||||
}
|
||||
$spec_sub = str_replace(' ', '', $box['formatted']);
|
||||
if (!$used[$k] && preg_match("/^$default_folder_prefix(Sent|Drafts|Trash).{1}$spec_sub$/", $box['unformatted']) ) {
|
||||
|
||||
/* In case of problems with preg
|
||||
here is a ereg version
|
||||
if (!$used[$k] && ereg("^$default_folder_prefix(Sent|Drafts|Trash).{1}$spec_sub$", $box['unformatted']) ) { */
|
||||
|
||||
if (!$used[$k] && preg_match("?^$default_folder_prefix(Sent|Drafts|Trash).{1}$spec_sub$?", $box['unformatted']) ) {
|
||||
$boxesnew[] = $box;
|
||||
$used[$k] = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue