summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-13 13:04:28 +0100
committernashe <thomas@chauchefoin.fr>2017-07-13 13:04:28 +0100
commit8406cec349ca59a62004efe3bc01124a609219fa (patch)
tree8e5d30a7217da0f23cd372da2adf3fb940885c46 /admin
parent6f3a001bfa95b1a0ee3ecc867d1ab8a52051b014 (diff)
downloadplanet-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-xadmin/subscriptions.php6
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());