* Needed to escape the { and } in the regexp
[squirrelmail.git] / functions / imap_general.php
index 2848b158b3c0281724a89dcfa364a6b27f14dc8b..1cdd83a0d445716eaf86a63bc1febb8fe0325893 100755 (executable)
@@ -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;