/**
* download.php
*
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* Handles attachment downloads to the users computer.
* Also allows displaying of attachments when possible.
*
+ * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
*/
//}
$subject = $message->rfc822_header->subject;
if ($ent_id) {
- $message = &$message->getEntity($ent_id);
+ // replace message with message part, if message part is requested.
+ $message = $message->getEntity($ent_id);
$header = $message->header;
if ($message->rfc822_header) {