Skip to content
Snippets Groups Projects
Commit cd712926 authored by wn_'s avatar wn_
Browse files

Actually, always clean in Handler._param_to_bool()

parent 16a72088
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment