From 4e7d6212a86e1773c03a36afba8d39372b02fa1d Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 30 Jan 2001 20:23:46 +0000 Subject: [PATCH] * 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 --- functions/imap_general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1