git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2611
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$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;
}