in the bodystructure.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4484
7612ce4b-ef26-0410-bec9-
ea0150e637f0
}
}
} else {
- if (trim( $header->id ) == '') {
- $filename = 'untitled-[' . $ent . ']' ;
- } else {
- $filename = 'cid: ' . $header->id;
- }
- }
-
+ $filename = decodeHeader($header->getParameter('name'));
+ if (!trim($filename)) {
+ if (trim( $header->id ) == '') {
+ $filename = 'untitled-[' . $ent . ']' ;
+ } else {
+ $filename = 'cid: ' . $header->id;
+ }
+ }
+ }
if ($header->description) {
$description = htmlspecialchars($header->description);
} else {