summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-11-30 01:31:57 +0100
committerBenny Baumann <BenBE@geshi.org>2014-11-30 01:31:57 +0100
commita31cb94286635f6055afc63b2dd22e3cf96f4d2f (patch)
treeb19ff7bcd3175b4c77d441ae34298762b13b203d
parent5ebf2d83021655df7e77f870658d8adaddab5330 (diff)
parentfc29c30e5fc0110fcca39758dcb9b212c049c035 (diff)
downloadcacert-devel-a31cb94286635f6055afc63b2dd22e3cf96f4d2f.tar.gz
cacert-devel-a31cb94286635f6055afc63b2dd22e3cf96f4d2f.tar.xz
cacert-devel-a31cb94286635f6055afc63b2dd22e3cf96f4d2f.zip
Merge branch 'bug-1288' into testserver-stable
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index 940d3c6..5a4548f 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -632,7 +632,7 @@
fputs($fp, "EHLO www.cacert.org\r\n");
do {
$line = fgets($fp, 4096);
- $has_starttls |= trim($line) == "250-STARTTLS";
+ $has_starttls |= substr(trim($line),4) == "STARTTLS";
} while(substr($line, 0, 4) == "250-");
if(substr($line, 0, 3) != "250") {
fclose($fp);