From e49ea4ad7de6429c8386860a6a74375f99b37228 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 14 Mar 2008 09:37:27 +0000 Subject: [PATCH] Do not trust case of get_class() return string git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13038 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 62a658f6..74a24485 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -954,7 +954,7 @@ function sqimap_get_message($imap_stream, $id, $mailbox, $hide=0) { */ function parse_message_entities(&$msg, $id, $imap_stream) { if (!empty($msg->entities)) foreach ($msg->entities as $i => $entity) { - if (is_object($entity) && get_class($entity) == 'Message') { + if (is_object($entity) && strtolower(get_class($entity)) == 'message') { if (!empty($entity->rfc822_header)) { $read = sqimap_run_command($imap_stream, "FETCH $id BODY[". $entity->entity_id .".HEADER]", true, $response, $message, TRUE); $rfc822_header = new Rfc822Header(); -- 2.25.1