X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdownload.php;h=a0c3b4bd436878a9ca2b1d9ec1f8486e8512ed1b;hb=617a4d89ef9d9761d4472e27871438ff132e2f05;hp=3be0e3c6d6d055237451931ffc73cf92ff0a8013;hpb=c0d968010e710870fdfee2f22d7cc9fad370c7a9;p=squirrelmail.git diff --git a/src/download.php b/src/download.php index 3be0e3c6..a0c3b4bd 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-2012 The SquirrelMail Project Team + * @copyright 1999-2014 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']) &&