summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);