From: fidian Date: Tue, 30 Jan 2001 20:23:46 +0000 (+0000) Subject: * Needed to escape the { and } in the regexp X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=4e7d6212a86e1773c03a36afba8d39372b02fa1d;ds=sidebyside * 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 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@989 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_general.php b/functions/imap_general.php index 2848b158..1cdd83a0 100755 --- a/functions/imap_general.php +++ b/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;