Permalink
Browse files

Always remove verify_host from SSL context.

It is only used to be able to set ```CN_match```.
  • Loading branch information...
bar committed Nov 21, 2013
1 parent 7fdf17e commit 1b9bf7b0fd118b6e79281125393d6686396fcd82
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/Http/HttpSocket.php
@@ -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']);
}
/**

0 comments on commit 1b9bf7b

Please sign in to comment.