From fc29c30e5fc0110fcca39758dcb9b212c049c035 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 30 Nov 2014 01:31:25 +0100 Subject: bug 1288: Accept STARTTLS as last option --- includes/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1