Selaa lähdekoodia

* Needed to escape the { and } in the regexp
* Need to escape backslashes, since they are first unescaped by PHP, then
unescaped by the regexp library

Tyler Akins 24 vuotta sitten
vanhempi
commit
248061a4d0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -19,7 +19,7 @@
 
       $read = fgets($imap_stream, 9096);
 
-      if (ereg("^\* [0-9]+ FETCH.*{([0-9]+)}", $read, $regs)) {
+      if (ereg("^\\* [0-9]+ FETCH.*\\{([0-9]+)\\}", $read, $regs)) {
          $size = $regs[1];
       } else {
          $size = 0;