summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-12 13:18:03 +0300
committerAndrew Dolgov <[email protected]>2015-07-12 13:18:03 +0300
commit96ac72bc12ab0f5a79c48b2542d4a20088d87f0a (patch)
tree963e5da7c125a2168cfd8bedb438eba94032fb4c /classes/api.php
parentb0ce3d33c3102f5c1176ecfba61f75d05e495622 (diff)
api: getHeadlines: cast feed_it to int if needed
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/api.php b/classes/api.php
index cbb4720c1..2691625c7 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -184,6 +184,8 @@ class API extends Handler {
$feed_id = $this->dbh->escape_string($_REQUEST["feed_id"]);
if ($feed_id != "") {
+ if (is_numeric($feed_id)) $feed_id = (int) $feed_id;
+
$limit = (int)$this->dbh->escape_string($_REQUEST["limit"]);
if (!$limit || $limit >= 200) $limit = 200;