mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-29 12:20:51 +02:00
api, getHeadlines: properly accept feed_id 0
This commit is contained in:
parent
be94a3a791
commit
5df8dacf9f
|
@ -188,7 +188,7 @@ class API extends Handler {
|
||||||
function getHeadlines(): bool {
|
function getHeadlines(): bool {
|
||||||
$feed_id = clean($_REQUEST["feed_id"] ?? "");
|
$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 );
|
$limit = (int)clean($_REQUEST["limit"] ?? 0 );
|
||||||
|
|
||||||
if (!$limit || $limit >= 200) $limit = 200;
|
if (!$limit || $limit >= 200) $limit = 200;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user