From 1c4f110feaa819e1d1379df655a756ac85240800 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 26 Feb 2006 12:51:10 +0000 Subject: [PATCH] true != 2 in this case git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10835 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/configtest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/configtest.php b/src/configtest.php index 44f71a01..5982b162 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -279,7 +279,7 @@ if($use_smtp_tls == 1 || $use_imap_tls == 1) { } } /* starttls extensions */ -if($use_smtp_tls == 2 || $use_imap_tls == 2) { +if($use_smtp_tls === 2 || $use_imap_tls === 2) { if (! function_exists('stream_socket_enable_crypto')) { do_err('If you want to use STARTTLS extension, you need stream_socket_enable_crypto() function from PHP 5.1.0 and newer.'); } @@ -321,7 +321,7 @@ if($useSendmail) { } /* smtp starttls checks */ - if ($use_smtp_tls==2) { + if ($use_smtp_tls===2) { // if something breaks, script should close smtp connection on exit. // say helo @@ -430,9 +430,9 @@ while ($line=fgets($stream, 1024)){ } /* don't display capabilities before STARTTLS */ -if ($use_imap_tls==2 && stristr($capline, 'STARTTLS') === false) { +if ($use_imap_tls===2 && stristr($capline, 'STARTTLS') === false) { do_err('Your server doesn\'t support STARTTLS.'); -} elseif($use_imap_tls==2) { +} elseif($use_imap_tls===2) { /* try starting starttls */ fwrite($stream,"A002 STARTTLS\r\n"); $starttls_line=fgets($stream, 1024); -- 2.25.1