From 47812966b0b85bc7163a69de58bca31dd8abcdfa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 21 May 2013 13:06:57 +0200 Subject: [PATCH] Disable SSL certificates validation --- vendor/PicoFeed/Filter.php | 1 + vendor/PicoFeed/RemoteResource.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/vendor/PicoFeed/Filter.php b/vendor/PicoFeed/Filter.php index f57d5e8..d951a09 100644 --- a/vendor/PicoFeed/Filter.php +++ b/vendor/PicoFeed/Filter.php @@ -70,6 +70,7 @@ class Filter public $blacklist_media = array( 'feeds.feedburner.com', + 'share.feedsportal.com', 'da.feedsportal.com', 'rss.feedsportal.com', 'res.feedsportal.com', diff --git a/vendor/PicoFeed/RemoteResource.php b/vendor/PicoFeed/RemoteResource.php index f5b1c0a..5256b5f 100644 --- a/vendor/PicoFeed/RemoteResource.php +++ b/vendor/PicoFeed/RemoteResource.php @@ -125,6 +125,9 @@ class RemoteResource curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 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_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); $http_body = '';