diff options
| author | nashe <thomas@chauchefoin.fr> | 2017-07-13 13:04:28 +0100 |
|---|---|---|
| committer | nashe <thomas@chauchefoin.fr> | 2017-07-13 13:04:28 +0100 |
| commit | 8406cec349ca59a62004efe3bc01124a609219fa (patch) | |
| tree | 8e5d30a7217da0f23cd372da2adf3fb940885c46 /admin | |
| parent | 6f3a001bfa95b1a0ee3ecc867d1ab8a52051b014 (diff) | |
| download | planet-8406cec349ca59a62004efe3bc01124a609219fa.tar planet-8406cec349ca59a62004efe3bc01124a609219fa.tar.gz planet-8406cec349ca59a62004efe3bc01124a609219fa.tar.bz2 planet-8406cec349ca59a62004efe3bc01124a609219fa.tar.xz planet-8406cec349ca59a62004efe3bc01124a609219fa.zip | |
Add an option to disable feed certificate check
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/subscriptions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/subscriptions.php b/admin/subscriptions.php index 1a79d1b..f8e4c2c 100755 --- a/admin/subscriptions.php +++ b/admin/subscriptions.php @@ -44,6 +44,12 @@ if (isset($_POST['opml']) || isset($_POST['add'])) { $feed = new SimplePie(); $feed->enable_cache(false); $feed->set_feed_url($_POST['url']); + if ($conf['checkcerts'] === false) { + $feed->set_curl_options([ + CURLOPT_SSL_VERIFYHOST => false, + CURLOPT_SSL_VERIFYPEER => false + ]); + } $feed->init(); $feed->handle_content_type(); $person['name'] = html_entity_decode($feed->get_title()); |
