mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Always remove verify_host from SSL context.
It is only used to be able to set ```CN_match```.
This commit is contained in:
parent
7fdf17e43e
commit
1b9bf7b0fd
1 changed files with 1 additions and 1 deletions
|
@ -689,8 +689,8 @@ class HttpSocket extends CakeSocket {
|
||||||
}
|
}
|
||||||
if (!empty($this->config['context']['ssl']['verify_host'])) {
|
if (!empty($this->config['context']['ssl']['verify_host'])) {
|
||||||
$this->config['context']['ssl']['CN_match'] = $host;
|
$this->config['context']['ssl']['CN_match'] = $host;
|
||||||
unset($this->config['context']['ssl']['verify_host']);
|
|
||||||
}
|
}
|
||||||
|
unset($this->config['context']['ssl']['verify_host']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue