diff options
Diffstat (limited to 'includes/general.php')
-rw-r--r-- | includes/general.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/general.php b/includes/general.php index ef87670..b3fd121 100644 --- a/includes/general.php +++ b/includes/general.php @@ -579,9 +579,9 @@ fputs($fp, "EHLO www.cacert.org\r\n"); do { $line = fgets($fp, 4096); - $has_starttls |= trim($line) == "220-STARTTLS"; + $has_starttls |= trim($line) == "250-STARTTLS"; } while(substr($line, 0, 4) == "250-"); - if(substr($line, 0, 3) != "220") { + if(substr($line, 0, 3) != "250") { fclose($fp); continue; } @@ -592,9 +592,9 @@ fputs($fp, "EHLO www.cacert.org\r\n"); do { $line = fgets($fp, 4096); - $has_starttls |= trim($line) == "220-STARTTLS"; + $has_starttls |= trim($line) == "250-STARTTLS"; } while(substr($line, 0, 4) == "250-"); - if(substr($line, 0, 3) != "220") { + if(substr($line, 0, 3) != "250") { fclose($fp); continue; } |