fix starttls check
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 29 Jan 2006 10:16:35 +0000 (10:16 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 29 Jan 2006 10:16:35 +0000 (10:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10603 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/configtest.php

index d0080d53f1796331586124e3a35c019c7bbe8222..c23d664bd5dcc992f7f14061e23304e561ab397d 100644 (file)
@@ -392,7 +392,7 @@ while ($line=fgets($stream, 1024)){
 /* don't display capabilities before STARTTLS */
 if ($use_imap_tls==2 && stristr($capline, 'STARTTLS') === false) {
     do_err('Your server doesn\'t support STARTTLS.');
-} else {
+} elseif($use_imap_tls==2) {
     /* try starting starttls */
     fwrite($stream,"A002 STARTTLS\r\n");
     $starttls_line=fgets($stream, 1024);