summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-11-29 14:33:18 +0100
committerBenny Baumann <BenBE@geshi.org>2014-11-29 14:33:18 +0100
commitff0f3887897a4a5dd238e4a9e5f8227e1f25a50f (patch)
treece004a18c4d6bdba89d849f2755ee1fe053c8766
parent56f2261871ea6fd1759bcd6759fde7d8e30b5ea7 (diff)
downloadcacert-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.php8
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;
}