From e2d2339cf02dc46a64e2118c13d28638d8ae9af0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Aug 2011 10:29:08 +0400 Subject: [PATCH] backend/pubsub: block immediately if PUBSUBHUBBUB_ENABLED is false --- backend.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend.php b/backend.php index d2c68a64..cdd1e653 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