Browse Source

* 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 năm trước cách đây
mục cha
commit
248061a4d0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;