aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-23 16:37:08 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-05-23 16:37:08 +0200
commit694dfa1f8b90d8f693ef39c7099c0e8f23c5c777 (patch)
treee341700c5e3035b6e951b46a0f92942656652f2d /app/Models/Feed.php
parent6c2bebaff2de459dc6861d6427cf4f4ac2d55872 (diff)
PubSubHubbub: remove white list
The tests so far are good. Ready to test more broadly. https://github.com/FreshRSS/FreshRSS/pull/831 https://github.com/FreshRSS/FreshRSS/issues/312
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index ed0a862c3..bf7ed3967 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -388,7 +388,7 @@ class FreshRSS_Feed extends Minz_Model {
function pubSubHubbubPrepare() {
$key = '';
- if (FreshRSS_Context::$system_conf->base_url && $this->hubUrl && $this->selfUrl) {
+ if (FreshRSS_Context::$system_conf->base_url && $this->hubUrl && $this->selfUrl && @is_dir(PSHB_PATH)) {
$path = PSHB_PATH . '/feeds/' . base64url_encode($this->selfUrl);
$hubFilename = $path . '/!hub.json';
if ($hubFile = @file_get_contents($hubFilename)) {