From c1f6e5f8651739c20fb587b35dc65bf4e0a2b701 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 25 Mar 2013 16:20:45 +0400 Subject: [PATCH] api: fix updateFeed crashing (closes #616) --- classes/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);