diff options
author | Benny Baumann <BenBE@geshi.org> | 2014-11-29 14:33:18 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2014-11-29 14:33:18 +0100 |
commit | ff0f3887897a4a5dd238e4a9e5f8227e1f25a50f (patch) | |
tree | ce004a18c4d6bdba89d849f2755ee1fe053c8766 | |
parent | 56f2261871ea6fd1759bcd6759fde7d8e30b5ea7 (diff) | |
download | cacert-devel-ff0f3887897a4a5dd238e4a9e5f8227e1f25a50f.tar.gz cacert-devel-ff0f3887897a4a5dd238e4a9e5f8227e1f25a50f.tar.xz cacert-devel-ff0f3887897a4a5dd238e4a9e5f8227e1f25a50f.zip |
bug 1288: EHLO returns 250 on success
-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; } |