Quellcode durchsuchen

To many problems with this regex call. using \\\\ instead of \\ seems to
work for everyone. If somebody can explain why \\ is not sufficient please
explain.

stekkel vor 22 Jahren
Ursprung
Commit
0edf989acc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      functions/imap_mailbox.php

+ 1 - 1
functions/imap_mailbox.php

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