diff options
author | Andrew Dolgov <[email protected]> | 2011-08-04 10:29:08 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-08-04 10:29:16 +0400 |
commit | e2d2339cf02dc46a64e2118c13d28638d8ae9af0 (patch) | |
tree | bcf27a935faa8993e6fda75ccbf8d62994aa13c9 | |
parent | 76495dfd314de996c2c2eb0b19dbe56ff53fbb86 (diff) |
backend/pubsub: block immediately if PUBSUBHUBBUB_ENABLED is false
-rw-r--r-- | backend.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend.php b/backend.php index d2c68a64f..cdd1e653b 100644 --- a/backend.php +++ b/backend.php @@ -548,6 +548,12 @@ $feed_id = db_escape_string($_REQUEST['id']); $feed_url = db_escape_string($_REQUEST['hub_topic']); + if (!PUBSUBHUBBUB_ENABLED) { + header('HTTP/1.0 404 Not Found'); + echo "404 Not found"; + return; + } + // TODO: implement hub_verifytoken checking $result = db_query($link, "SELECT feed_url FROM ttrss_feeds |