X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fdownload.php;h=eb223eeebb8598e76bbdf00192106ef570422d4c;hb=1ad27d869eee2c3cb75bf399ac4f2b7c7825a8c2;hp=8f0d848b47334862cf09b4ea8783ef37974d32b8;hpb=701e7beed3baca980039f978c6d536dd91cae775;p=squirrelmail.git diff --git a/src/download.php b/src/download.php index 8f0d848b..eb223eee 100644 --- a/src/download.php +++ b/src/download.php @@ -6,7 +6,7 @@ * Handles attachment downloads to the users computer. * Also allows displaying of attachments when possible. * - * @copyright 1999-2014 The SquirrelMail Project Team + * @copyright 1999-2015 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -58,7 +58,8 @@ set_my_charset(); /* end globals */ -$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); +global $imap_stream_options; // in case not defined in config +$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options); $aMailbox = sqm_api_mailbox_select($imapConnection, $account, $mailbox,array(),array()); if (isset($aMailbox['MSG_HEADERS'][$passed_id]['MESSAGE_OBJECT']) &&