1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 03:44:32 +02:00

fix: filter values are not validated (#3795)

This commit is contained in:
Sami Mazouz
2023-05-07 18:37:53 +01:00
committed by GitHub
parent c766881e1f
commit 9363682e1c
27 changed files with 214 additions and 56 deletions

View File

@@ -63,7 +63,7 @@ class SuspendedFilterGambit extends AbstractRegexGambit implements FilterInterfa
return 'suspended';
}
public function filter(FilterState $filterState, string $filterValue, bool $negate)
public function filter(FilterState $filterState, $filterValue, bool $negate)
{
if (! $filterState->getActor()->can('suspend', new Guest())) {
return false;