mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #2856 from cvandeplas/master
fixes issue #2855 where cafile is not set in HttpSocket
This commit is contained in:
commit
97ebfd6341
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@ class HttpSocket extends CakeSocket {
|
||||||
}
|
}
|
||||||
unset($this->config[$key]);
|
unset($this->config[$key]);
|
||||||
}
|
}
|
||||||
if (empty($this->_context['ssl']['cafile'])) {
|
if (empty($this->config['context']['ssl']['cafile'])) {
|
||||||
$this->config['context']['ssl']['cafile'] = CAKE . 'Config' . DS . 'cacert.pem';
|
$this->config['context']['ssl']['cafile'] = CAKE . 'Config' . DS . 'cacert.pem';
|
||||||
}
|
}
|
||||||
if (!empty($this->config['context']['ssl']['verify_host'])) {
|
if (!empty($this->config['context']['ssl']['verify_host'])) {
|
||||||
|
|
Loading…
Reference in a new issue