From 6c01e4e7d6c177ac345c826059e585bffdd1d517 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 7 Apr 2023 00:13:49 +0200 Subject: Use typed access to request parameters (#5267) * Use typed access to request parameters This was a big source of mixed datatypes in many places * Fix notifications * Fix bookmarkAction --- app/Controllers/apiController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/Controllers/apiController.php') diff --git a/app/Controllers/apiController.php b/app/Controllers/apiController.php index 53ae2858c..52ec53045 100644 --- a/app/Controllers/apiController.php +++ b/app/Controllers/apiController.php @@ -47,8 +47,7 @@ class FreshRSS_api_Controller extends FreshRSS_ActionController { Minz_Request::forward($return_url, true); } - $apiPasswordPlain = Minz_Request::param('apiPasswordPlain', '', true); - $apiPasswordPlain = trim($apiPasswordPlain); + $apiPasswordPlain = Minz_Request::paramString('apiPasswordPlain', true); if ($apiPasswordPlain == '') { Minz_Request::forward($return_url, true); } -- cgit v1.2.3