From 1f7b78723650a189a631ac32bdc9deba89be04e7 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Fri, 20 Mar 2015 11:30:15 +0100 Subject: [PATCH] Use $host parameter --- lib/Cake/Network/Http/HttpSocket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Network/Http/HttpSocket.php b/lib/Cake/Network/Http/HttpSocket.php index fe1d2bccc35..44b514d9f41 100644 --- a/lib/Cake/Network/Http/HttpSocket.php +++ b/lib/Cake/Network/Http/HttpSocket.php @@ -724,11 +724,11 @@ protected function _configContext($host) { } if (version_compare(PHP_VERSION, '5.6.0', '>=')) { if (empty($this->config['context']['ssl']['peer_name'])) { - $this->config['context']['ssl']['peer_name'] = $this->request['uri']['host']; + $this->config['context']['ssl']['peer_name'] = $host; } } else { if (empty($this->config['context']['ssl']['SNI_server_name'])) { - $this->config['context']['ssl']['SNI_server_name'] = $this->request['uri']['host']; + $this->config['context']['ssl']['SNI_server_name'] = $host; } } }