From: Marc G. K. <st...@us...> - 2002-11-05 12:03:28
|
Update of /cvsroot/squirrelmail/squirrelmail/functions In directory usw-pr-cvs1:/tmp/cvs-serv25377 Modified Files: mime.php Log Message: show untitled-[entity-id] in case of message/rfc822 attachments with no subject. Index: mime.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/functions/mime.php,v retrieving revision 1.245 retrieving revision 1.246 diff -u -w -r1.245 -r1.246 --- mime.php 4 Nov 2002 20:24:06 -0000 1.245 +++ mime.php 5 Nov 2002 12:03:24 -0000 1.246 @@ -412,7 +412,9 @@ $default_page = '../src/read_body.php'; $rfc822_header = $att->rfc822_header; $filename = decodeHeader($rfc822_header->subject); - + if (trim( $filename ) == '') { + $filename = 'untitled-[' . $ent . ']' ; + } $from_o = $rfc822_header->from; if (is_object($from_o)) { $from_name = $from_o->getAddress(false); |