Skip to content

Commit

Permalink
Always remove verify_host from SSL context.
Browse files Browse the repository at this point in the history
It is only used to be able to set ```CN_match```.
  • Loading branch information
bar committed Nov 21, 2013
1 parent 7fdf17e commit 1b9bf7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Http/HttpSocket.php
Expand Up @@ -689,8 +689,8 @@ protected function _configContext($host) {
}
if (!empty($this->config['context']['ssl']['verify_host'])) {
$this->config['context']['ssl']['CN_match'] = $host;
unset($this->config['context']['ssl']['verify_host']);
}
unset($this->config['context']['ssl']['verify_host']);
}

/**
Expand Down

0 comments on commit 1b9bf7b

Please sign in to comment.