Przeglądaj źródła

fix starttls check

tokul 19 lat temu
rodzic
commit
8b98e1c50f
1 zmienionych plików z 1 dodań i 1 usunięć
  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);