summaryrefslogtreecommitdiff
path: root/classes/handler.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-18 18:07:43 +0000
committerwn_ <[email protected]>2021-11-18 18:09:47 +0000
commit2422aae57711fafcedde6b381a0624ca67fa79cb (patch)
tree0ead75a58890f6e44920ba0725eaf065751995c6 /classes/handler.php
parentd6f604c06c2533a7c32d7a3accf4f4b8a47ad992 (diff)
Consistently handle param string to bool conversions in handlers.
Diffstat (limited to 'classes/handler.php')
-rw-r--r--classes/handler.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/handler.php b/classes/handler.php
index 3ee42cedb..aca5bf4d2 100644
--- a/classes/handler.php
+++ b/classes/handler.php
@@ -27,4 +27,10 @@ class Handler implements IHandler {
return true;
}
+ /**
+ * @param mixed $p
+ */
+ protected static function _param_to_bool($p): bool {
+ return $p && ($p !== "f" && $p !== "false");
+ }
}