]> git.wh0rd.org Git - tt-rss.git/commitdiff
backend/pubsub: block immediately if PUBSUBHUBBUB_ENABLED is false
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Aug 2011 06:29:08 +0000 (10:29 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Aug 2011 06:29:16 +0000 (10:29 +0400)
backend.php

index d2c68a64f7d7a5bb846b40894f70f9992576f417..cdd1e653bc00d2e35387ceccf3da48fe9ad126c3 100644 (file)
                        $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