]> git.wh0rd.org Git - tt-rss.git/commitdiff
pubsub: cast feed_id as integer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 21 Aug 2011 11:46:44 +0000 (15:46 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 21 Aug 2011 11:46:44 +0000 (15:46 +0400)
backend.php

index b06bd000b95b599195296627b7b49bfa9fb734f9..cee1b6f07cb18ca09634d87eb88d659cab301c5b 100644 (file)
 
                case "pubsub":
                        $mode = db_escape_string($_REQUEST['hub_mode']);
-                       $feed_id = db_escape_string($_REQUEST['id']);
+                       $feed_id = (int) db_escape_string($_REQUEST['id']);
                        $feed_url = db_escape_string($_REQUEST['hub_topic']);
 
                        if (!PUBSUBHUBBUB_ENABLED) {