diff options
author | wn_ <[email protected]> | 2021-11-18 18:07:43 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-11-18 18:09:47 +0000 |
commit | 2422aae57711fafcedde6b381a0624ca67fa79cb (patch) | |
tree | 0ead75a58890f6e44920ba0725eaf065751995c6 /classes/handler/public.php | |
parent | d6f604c06c2533a7c32d7a3accf4f4b8a47ad992 (diff) |
Consistently handle param string to bool conversions in handlers.
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index b5282c222..6d8f0bd8f 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -307,7 +307,7 @@ class Handler_Public extends Handler { function rss(): void { $feed = clean($_REQUEST["id"]); $key = clean($_REQUEST["key"]); - $is_cat = clean($_REQUEST["is_cat"] ?? false); + $is_cat = self::_param_to_bool($_REQUEST["is_cat"] ?? null); $limit = (int)clean($_REQUEST["limit"] ?? 0); $offset = (int)clean($_REQUEST["offset"] ?? 0); @@ -317,7 +317,7 @@ class Handler_Public extends Handler { $start_ts = clean($_REQUEST["ts"] ?? ""); $format = clean($_REQUEST['format'] ?? "atom"); - $orig_guid = clean($_REQUEST["orig_guid"] ?? false); + $orig_guid = clean($_REQUEST["orig_guid"] ?? ""); if (Config::get(Config::SINGLE_USER_MODE)) { UserHelper::authenticate("admin", null); |