mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:15:56 +00:00
api: getHeadlines: cast feed_it to int if needed
This commit is contained in:
@@ -184,6 +184,8 @@ class API extends Handler {
|
|||||||
$feed_id = $this->dbh->escape_string($_REQUEST["feed_id"]);
|
$feed_id = $this->dbh->escape_string($_REQUEST["feed_id"]);
|
||||||
if ($feed_id != "") {
|
if ($feed_id != "") {
|
||||||
|
|
||||||
|
if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
|
||||||
|
|
||||||
$limit = (int)$this->dbh->escape_string($_REQUEST["limit"]);
|
$limit = (int)$this->dbh->escape_string($_REQUEST["limit"]);
|
||||||
|
|
||||||
if (!$limit || $limit >= 200) $limit = 200;
|
if (!$limit || $limit >= 200) $limit = 200;
|
||||||
|
|||||||
Reference in New Issue
Block a user