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/Models/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/Auth.php') diff --git a/app/Models/Auth.php b/app/Models/Auth.php index ccf244033..8fd06b24d 100644 --- a/app/Models/Auth.php +++ b/app/Models/Auth.php @@ -169,9 +169,9 @@ class FreshRSS_Auth { ]); $username = ''; - $token_param = Minz_Request::param('token', ''); + $token_param = Minz_Request::paramString('token'); if ($token_param != '') { - $username = trim(Minz_Request::param('user', '')); + $username = Minz_Request::paramString('user'); if ($username != '') { $conf = get_user_configuration($username); if ($conf == null) { -- cgit v1.2.3