X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUtils.php;h=4a2f5561cfdf5dfb38ed9a0a4c0f46b58b27c8c6;hb=3e395a6bc63cba16b0772a382f6cbac0ce4ab906;hp=9d0ebc5ea3a86c68ac7693c9f793855866658d0c;hpb=b2e2aa42e288e0becaa95bf9cc3be679743fc98e;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Utils.php b/application/Utils.php index 9d0ebc5e..4a2f5561 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -91,6 +91,10 @@ function endsWith($haystack, $needle, $case = true) */ function escape($input) { + if (is_bool($input)) { + return $input; + } + if (is_array($input)) { $out = array(); foreach($input as $key => $value) {