Buggy messages with empty mime-parts (size=0) causes incorrect parsing.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 28 Oct 2002 09:34:06 +0000 (09:34 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 28 Oct 2002 09:34:06 +0000 (09:34 +0000)
Adding case '0': solved the problem.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4047 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Message.class.php

index 4485522..3e59af7 100644 (file)
@@ -284,6 +284,7 @@ class Message {
                     $arg_s = $msg->parseLiteral($read, $i);
                     ++$arg_no;
                     break;
+               case '0':
                 case is_numeric($read{$i}):
                     /* process integers */
                     if ($read{$i} == ' ') { break; }