From: Andrew Dolgov Date: Mon, 25 Mar 2013 12:20:45 +0000 (+0400) Subject: api: fix updateFeed crashing (closes #616) X-Git-Tag: 1.7.6~302 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c1f6e5f8651739c20fb587b35dc65bf4e0a2b701;p=tt-rss.git api: fix updateFeed crashing (closes #616) --- diff --git a/classes/api.php b/classes/api.php index 44130d39..ba0eebb3 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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);