summaryrefslogtreecommitdiffstats
path: root/app/classes
diff options
context:
space:
mode:
Diffstat (limited to 'app/classes')
-rw-r--r--app/classes/Planet.php7
-rw-r--r--app/classes/PlanetConfig.php3
2 files changed, 9 insertions, 1 deletions
diff --git a/app/classes/Planet.php b/app/classes/Planet.php
index aa323ee..39b55f6 100644
--- a/app/classes/Planet.php
+++ b/app/classes/Planet.php
@@ -181,6 +181,13 @@ class Planet
$this->errors[] = new PlanetError(1, 'Forced from cache : '.$feed->getFeed());
}
+ if ($this->config->checkcerts === false) {
+ $feed->set_curl_options([
+ CURLOPT_SSL_VERIFYHOST => false,
+ CURLOPT_SSL_VERIFYPEER => false
+ ]);
+ }
+
//Load feed
$feed->init();
$isDown = '';
diff --git a/app/classes/PlanetConfig.php b/app/classes/PlanetConfig.php
index 4838ba0..4348524 100644
--- a/app/classes/PlanetConfig.php
+++ b/app/classes/PlanetConfig.php
@@ -20,7 +20,8 @@ class PlanetConfig
'postmaxlength' => 0,
'categories' => '',
'cachedir' => './cache',
- 'debug' => false
+ 'debug' => false,
+ 'checkcerts' => true,
);
/**