فهرست منبع

* 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 سال پیش
والد
کامیت
248061a4d0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -19,7 +19,7 @@
 
 
       $read = fgets($imap_stream, 9096);
       $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];
          $size = $regs[1];
       } else {
       } else {
          $size = 0;
          $size = 0;