diff --git a/include/utils/VtlibUtils.php b/include/utils/VtlibUtils.php index f38cdcecf66714d6f309d0ae0534e1cd15cbc5ea..78040c55318ea9050dec03ffc27e9690354dc00c 100644 --- a/include/utils/VtlibUtils.php +++ b/include/utils/VtlibUtils.php @@ -738,6 +738,8 @@ function vtlib_purify($input, $ignore = false) { * Helpful to keep away quote-injection xss attacks in the templates. */ function vtlib_strip_quoted($input) { + if (is_null($input)) return $input; + $output = $input; /* * Discard anything in "double quoted until'you find next double quote"