Explorar o código

fix starttls check

tokul %!s(int64=19) %!d(string=hai) anos
pai
achega
8b98e1c50f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/configtest.php

+ 1 - 1
src/configtest.php

@@ -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);