api: fix updateFeed crashing (closes #616)
This commit is contained in:
parent
ae6d8b658b
commit
c1f6e5f865
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue