From 57ffe0afff8524e5d8485fa6aaa24aa415fe43f1 Mon Sep 17 00:00:00 2001 From: tassium Date: Thu, 26 Feb 2004 16:19:29 +0000 Subject: [PATCH] Brain-damage in sqimap_create_stream(). Can't believe I let myself commit this function in such poor shape, and further that nobody else caught it until now ;) sqimap_create_stream() was not as generalized as it should have been - it was still using $imap_server and $use_imap_tls, etc. Now obeying passed params as it should. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6666 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 6f0a7c6f..d2687a3b 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -567,10 +567,10 @@ function sqimap_read_data ($imap_stream, $tag_uid, $handle_errors, function sqimap_create_stream($server,$port,$tls=false) { global $username, $use_imap_tls; - if ($use_imap_tls == true) { + if ($tls == true) { if ((check_php_version(4,3)) and (extension_loaded('openssl'))) { /* Use TLS by prefixing "tls://" to the hostname */ - $server = 'tls://' . $imap_server_address; + $server = 'tls://' . $server; } else { require_once(SM_PATH . 'functions/display_messages.php'); $string = "Unable to connect to IMAP server!
TLS is enabled, but this " . -- 2.25.1