From cce17afbab349a246b4bad776d512b7860bc5040 Mon Sep 17 00:00:00 2001 From: fidian Date: Sat, 27 Jan 2001 22:06:50 +0000 Subject: [PATCH] Replaced preg_match with ereg (speed) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@971 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 c91c3ec1..f424e041 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -16,7 +16,7 @@ global $color, $squirrelmail_language, $imap_general_debug; $read = fgets($imap_stream, 9096); - if (preg_match ("/^\* [0-9]+ FETCH.*{([0-9]+)}/", $read, $regs)) { + if (ereg("^\* [0-9]+ FETCH.*{([0-9]+)}", $read, $regs)) { $size = $regs[1]; } -- 2.25.1