From 5df8dacf9fea8b2631cb674b1af77794186d7305 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 1 Dec 2021 19:04:42 +0300 Subject: [PATCH] api, getHeadlines: properly accept feed_id 0 --- classes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/api.php b/classes/api.php index 213ccb7e6..7759b43bf 100755 --- a/classes/api.php +++ b/classes/api.php @@ -188,7 +188,7 @@ class API extends Handler { function getHeadlines(): bool { $feed_id = clean($_REQUEST["feed_id"] ?? ""); - if (!empty($feed_id)) { + if (!empty($feed_id) || is_numeric($feed_id)) { // is_numeric for feed_id "0" $limit = (int)clean($_REQUEST["limit"] ?? 0 ); if (!$limit || $limit >= 200) $limit = 200;