Replaced "filter_input" with the new request value function

This commit is contained in:
Michael 2022-01-16 16:40:13 +00:00
parent 720a43461d
commit 344d514857
11 changed files with 69 additions and 90 deletions

View file

@ -52,8 +52,8 @@ class Destroy extends BaseApi
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();
$id = filter_var($request['id'] ?? 0, FILTER_VALIDATE_INT);
$verbose = filter_var($request['friendica_verbose'] ?? false, FILTER_VALIDATE_BOOLEAN);
$id = $this->getRequestValue($request, 'id', 0);
$verbose = $this->getRequestValue($request, 'friendica_verbose', false);
$parenturi = $request['friendica_parenturi'] ?? '';