From cd712926105f18e906132ded25a86dec676ed9cc Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 18 Nov 2021 18:18:49 +0000 Subject: [PATCH] Actually, always clean in Handler._param_to_bool() --- classes/handler.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/classes/handler.php b/classes/handler.php index 15f9a1bd8..806c9cfbe 100644 --- a/classes/handler.php +++ b/classes/handler.php @@ -31,9 +31,7 @@ class Handler implements IHandler { * @param mixed $p */ protected static function _param_to_bool($p): bool { - if (is_string($p)) { - $p = clean($p); - } + $p = clean($p); return $p && ($p !== "f" && $p !== "false"); } }