From 51aa728e7e750c50b10c215e784f0052eed920ba Mon Sep 17 00:00:00 2001 From: jmunro Date: Sun, 21 Jul 2002 04:16:41 +0000 Subject: [PATCH] fix for bug #578156 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3109 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index cebd71b4..403ce05f 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -581,8 +581,7 @@ function sqimap_mailbox_list($imap_stream) { $used[$k] = true; } $spec_sub = str_replace(' ', '', $box['formatted']); - $spec_sub = str_replace('*', '', $spec_sub); - $spec_sub = str_replace('?', '\?', $spec_sub); + $spec_sub = preg_replace("/(\*|\[|\]|\(|\)|\?|\+|\{|\}|\^|\\$)/", '\\\\'.'\\1', $spec_sub); /* In case of problems with preg here is a ereg version -- 2.25.1