This fixes SquirrelMail's inability to download large attachments. You
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Dec 2000 17:08:58 +0000 (17:08 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Dec 2000 17:08:58 +0000 (17:08 +0000)
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

index cab32d51ce4b147c194e4b686ee3934e3f98ad51..fba9d7a4251ddb1458857a8afa9a59c3857057cf 100644 (file)
       $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]);