Disable SSL certificates validation

This commit is contained in:
Frederic Guillot 2013-05-21 13:06:57 +02:00
parent 8fd7b18927
commit 47812966b0
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class Filter
public $blacklist_media = array( public $blacklist_media = array(
'feeds.feedburner.com', 'feeds.feedburner.com',
'share.feedsportal.com',
'da.feedsportal.com', 'da.feedsportal.com',
'rss.feedsportal.com', 'rss.feedsportal.com',
'res.feedsportal.com', 'res.feedsportal.com',

View File

@ -125,6 +125,9 @@ class RemoteResource
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
// Don't check SSL certificates (for auto-signed certificates...)
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$http_response = curl_exec($ch); $http_response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$http_body = ''; $http_body = '';