* Needed to escape the { and } in the regexp
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Jan 2001 20:23:46 +0000 (20:23 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Jan 2001 20:23:46 +0000 (20:23 +0000)
* Need to escape backslashes, since they are first unescaped by PHP, then
  unescaped by the regexp library

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@989 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 2848b158b3c0281724a89dcfa364a6b27f14dc8b..1cdd83a0d445716eaf86a63bc1febb8fe0325893 100755 (executable)
@@ -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];
       } else {
          $size = 0;
          $size = $regs[1];
       } else {
          $size = 0;