From 72377ae1eccf2733c61dfdf764557c99fc055d26 Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 30 Jul 2002 16:15:07 +0000 Subject: [PATCH] fix for displaying attachment names git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3189 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/mime.php b/functions/mime.php index e7370aa7..8717a5b6 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -408,7 +408,7 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) { "[ $type0/$type1 ] " . ''; $from_o = $header->from; - if (isset($from_o)) { + if (is_object($from_o)) { $from_name = $from_o->getAddress(false); } else { $from_name = _("Unknown sender"); @@ -430,6 +430,7 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) { } else { $filename = decodeHeader($header->filename); if (trim($filename) == '') { + $name = decodeHeader($header->name); if (trim($name) == '') { if ( trim( $header->id ) == '' ) $display_filename = 'untitled-[' . $ent . ']' ; -- 2.25.1