From 3cb8baa6483e44cd4a6f018c54dcadf97145949f Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 27 Dec 2002 15:49:35 +0000 Subject: [PATCH] ugly bugfix for parsing literals inside envelope structures. Note: All the parser function are rewritten in a clean way and will be commited soon in SM 1.5 . The just applied fix was needed for a stable release. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4316 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime/Message.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/class/mime/Message.class.php b/class/mime/Message.class.php index b3fb64c2..2db2a0f9 100644 --- a/class/mime/Message.class.php +++ b/class/mime/Message.class.php @@ -375,9 +375,8 @@ class Message { function parseEnvelope($read, &$i, $hdr) { $arg_no = 0; $arg_a = array(); - + ++$i; for ($cnt = strlen($read); ($i < $cnt) && ($read{$i} != ')'); ++$i) { - ++$i; $char = strtoupper($read{$i}); switch ($char) { case '"': @@ -386,6 +385,9 @@ class Message { break; case '{': $arg_a[] = $this->parseLiteral($read, $i); + /* temp bugfix (SM 1.5 will have a working clean version) + too much work to implement that version right now */ + --$i; ++$arg_no; break; case 'N': -- 2.25.1