From: Andrew Dolgov Date: Thu, 4 Aug 2011 06:29:08 +0000 (+0400) Subject: backend/pubsub: block immediately if PUBSUBHUBBUB_ENABLED is false X-Git-Tag: 1.5.6~65 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e2d2339cf02dc46a64e2118c13d28638d8ae9af0;p=tt-rss.git backend/pubsub: block immediately if PUBSUBHUBBUB_ENABLED is false --- 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