From 3fac2aa91402ec1ffb465402ed6949786298ad06 Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 1 Aug 2001 14:40:07 +0000 Subject: [PATCH] Fixed a bug that would only appear with an obscenely long line in the email. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1471 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/imap_general.php b/functions/imap_general.php index 05915354..a8099350 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -74,6 +74,9 @@ } else { $data[] = $read; $read = fgets($imap_stream, 9096); + while (strpos($read, "\n") === false) { + $read .= fgets($imap_stream, 9096); + } } $total_size += strlen($read); } else { -- 2.25.1