]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: fix updateFeed crashing (closes #616)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 25 Mar 2013 12:20:45 +0000 (16:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 25 Mar 2013 12:20:45 +0000 (16:20 +0400)
classes/api.php

index 44130d39777d7ff9f534a7ea9acf671900622229..ba0eebb368c88a3beb394183dcf8a4b58f25240c 100644 (file)
@@ -351,7 +351,9 @@ class API extends Handler {
        }
 
        function updateFeed() {
-               $feed_id = db_escape_string($this->link, $_REQUEST["feed_id"]);
+               require_once "include/rssfuncs.php";
+
+               $feed_id = (int) db_escape_string($this->link, $_REQUEST["feed_id"]);
 
                update_rss_feed($this->link, $feed_id, true);