summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2014-11-30 01:31:25 +0100
committerBenny Baumann <BenBE@geshi.org>2014-11-30 01:31:25 +0100
commitfc29c30e5fc0110fcca39758dcb9b212c049c035 (patch)
tree0f65e6f4903df86308687861a54783b4dd4037d0
parent25936445de04c27c377f2de84f117100b43d533f (diff)
downloadcacert-devel-fc29c30e5fc0110fcca39758dcb9b212c049c035.tar.gz
cacert-devel-fc29c30e5fc0110fcca39758dcb9b212c049c035.tar.xz
cacert-devel-fc29c30e5fc0110fcca39758dcb9b212c049c035.zip
bug 1288: Accept STARTTLS as last option
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index 57268dc..ac9ac87 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -579,7 +579,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);