diff options
| author | 2023-04-07 00:13:49 +0200 | |
|---|---|---|
| committer | 2023-04-07 00:13:49 +0200 | |
| commit | 6c01e4e7d6c177ac345c826059e585bffdd1d517 (patch) | |
| tree | 45bd8ee233a306881ed81447a3f56ca224fed538 /app/Models/Auth.php | |
| parent | 2118448133e327294ad2b69ed8736bc29879103d (diff) | |
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
Diffstat (limited to 'app/Models/Auth.php')
| -rw-r--r-- | app/Models/Auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
