Clean string params in Handler._param_to_bool()

This commit is contained in:
wn_ 2021-11-18 18:16:50 +00:00
parent 2422aae577
commit 16a7208893
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ class Handler implements IHandler {
* @param mixed $p
*/
protected static function _param_to_bool($p): bool {
if (is_string($p)) {
$p = clean($p);
}
return $p && ($p !== "f" && $p !== "false");
}
}