X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_text.php;h=982133c6fa950b4869850db5de4e5a909b4713b3;hb=aa1340ebb1e775a36b74dbfc22391ee095d45394;hp=5958c78db32f17fa4913cc7ef9ec36c48695cfe3;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b;p=squirrelmail.git diff --git a/src/view_text.php b/src/view_text.php index 5958c78d..982133c6 100644 --- a/src/view_text.php +++ b/src/view_text.php @@ -5,7 +5,7 @@ * * Used by attachment_common code. * - * @copyright © 1999-2009 The SquirrelMail Project Team + * @copyright 1999-2017 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -29,7 +29,8 @@ sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET); sqgetGlobalVar('QUERY_STRING', $QUERY_STRING, SQ_SERVER); sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT); -$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); $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox); $message = &$messages[$mbx_response['UIDVALIDITY']][$passed_id];