mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
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
This commit is contained in:
committed by
GitHub
parent
2118448133
commit
6c01e4e7d6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user