To many problems with this regex call. using \\\\ instead of \\ seems to
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 29 Jun 2003 19:40:08 +0000 (19:40 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 29 Jun 2003 19:40:08 +0000 (19:40 +0000)
work for everyone. If somebody can explain why \\ is not sufficient please
explain.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5168 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 8717c49af4c152127faa724556526d16d76fd841..e212d97aa9b17e3d21db339ff7d37a22420e0859 100755 (executable)
@@ -93,7 +93,7 @@ function find_mailbox_name ($mailbox) {
 }
 
 function check_is_noselect ($lsub_line) {
-    return preg_match("/^\* (LSUB|LIST) \([^\)]*\\Noselect[^\)]*\)/i", $lsub_line);
+    return preg_match("/^\* (LSUB|LIST) \([^\)]*\\\\Noselect[^\)]*\)/i", $lsub_line);
 }
 
 /**