diff options
| author | fox <fox@noreply.tt-rss.org> | 2021-11-19 07:36:15 +0300 |
|---|---|---|
| committer | fox <fox@noreply.tt-rss.org> | 2021-11-19 07:36:15 +0300 |
| commit | 0a3a464defbe67092a0bd155cb2f6afcf379da2e (patch) | |
| tree | df4d699e5d11d5a6f19f26472a1702cbcbad7f4e /classes/handler/public.php | |
| parent | 3070933f649c097ca8ed02a8aea61eede1408b45 (diff) | |
| parent | 4a891b20f06e04b015d4da9b755d444b915f4b7d (diff) | |
Merge pull request 'Consistently handle param string to bool conversions in handlers.' (#53) from wn/tt-rss:feature/consistent-param-to-bool into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/53
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..d0776f03c 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"] ?? false); $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); |