From 6ff90ce91c34a409c50de555f7d00f62e103abba Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 15 Dec 2000 17:08:58 +0000 Subject: [PATCH] This fixes SquirrelMail's inability to download large attachments. You still may need to tweak PHP's .ini file, but that isn't something that can be done in SM. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@893 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index cab32d51..fba9d7a4 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -366,8 +366,7 @@ $topline = array_shift($data); while (! ereg('\* [0-9]+ FETCH ', $topline) && data) $topline = array_shift($data); - while ($data) - $wholemessage .= array_shift($data); + $wholemessage = implode('', $data); if (ereg('\{([^\}]*)\}', $topline, $regs)) { return substr($wholemessage, 0, $regs[1]); -- 2.25.1