diff options
Diffstat (limited to 'admin/subscriptions.php')
| -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()); |
