From f96abd2b52b9de5eac3651594ca32c6a4023c3e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Mar 2021 16:16:50 +0300 Subject: [PATCH] generate_syndicated_feed: timestamp is a strtotime() expression, not an integer --- classes/handler/public.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 1d970b689..d26cf7a35 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -1,9 +1,10 @@ load_data(); $handler = $tmppluginhost->get_feed_handler( - PluginHost::feed_to_pfeed_id($feed)); + PluginHost::feed_to_pfeed_id((int)$feed)); if ($handler) { - $qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id($feed), $params); + $qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id((int)$feed), $params); } } else { @@ -304,7 +305,7 @@ class Handler_Public extends Handler { $search = clean($_REQUEST["q"] ?? ""); $view_mode = clean($_REQUEST["view-mode"] ?? ""); $order = clean($_REQUEST["order"] ?? ""); - $start_ts = (int)clean($_REQUEST["ts"] ?? 0); + $start_ts = clean($_REQUEST["ts"] ?? ""); $format = clean($_REQUEST['format'] ?? "atom"); $orig_guid = clean($_REQUEST["orig_guid"] ?? false);