From 4bbe6ccc4e27f06cce99d93f7f273a30266bda3b Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 9 Feb 2001 16:38:35 +0000 Subject: [PATCH] * Stupid bugfix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1094 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 4c1930b7..91572e55 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -161,6 +161,7 @@ $elem_num = 1; $msg->header = new msg_header(); $msg->header->entity_id = $ent_id; + $properties = array(); while (strlen($structure) > 0) { $structure = trim($structure); @@ -184,8 +185,6 @@ // comment me $end = mime_match_parenthesis (0, $structure); $sub = substr($structure, 1, $end-1); - if (! isset($properties)) - $properties = array(); $properties = mime_get_props($properties, $sub); $structure = substr($structure, strlen($sub) + 2); } else { @@ -352,6 +351,8 @@ // ignore all extra characters // If inside of a string, skip string -- Boundary IDs and other // things can have ) in them. + if ($char != '(') + return strlen($structure); while ($pos < strlen($structure)) { $pos++; $char = substr($structure, $pos, 1); -- 2.25.1