mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Improved handling of boolean input values
This commit is contained in:
parent
e6108668e3
commit
7b68a5956e
13 changed files with 18 additions and 18 deletions
|
@ -78,7 +78,7 @@ class PublicTimeline extends BaseApi
|
|||
$statuses = Post::selectForUser($uid, [], $condition, $params);
|
||||
}
|
||||
|
||||
$include_entities = strtolower(($_REQUEST['include_entities'] ?? 'false') == 'true');
|
||||
$include_entities = filter_var($request['include_entities'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
$ret = [];
|
||||
while ($status = DBA::fetch($statuses)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue