From b16d627b36203c04cc54f3414d438cbd0abb63aa Mon Sep 17 00:00:00 2001 From: "t.gommers" Date: Mon, 27 Jul 2015 13:03:21 +0200 Subject: [PATCH] Disable SNI in HttpSocket --- lib/Cake/Network/Http/HttpSocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/Http/HttpSocket.php b/lib/Cake/Network/Http/HttpSocket.php index 44b514d9f41..36c2985b509 100644 --- a/lib/Cake/Network/Http/HttpSocket.php +++ b/lib/Cake/Network/Http/HttpSocket.php @@ -719,7 +719,7 @@ protected function _configContext($host) { unset($this->config[$key]); } if (version_compare(PHP_VERSION, '5.3.2', '>=')) { - if (empty($this->config['context']['ssl']['SNI_enabled'])) { + if (!isset($this->config['context']['ssl']['SNI_enabled'])) { $this->config['context']['ssl']['SNI_enabled'] = true; } if (version_compare(PHP_VERSION, '5.6.0', '>=')) {