From 6c64247ac204cfbb6fcbceb50a5e6903f30d2f44 Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Thu, 9 May 2024 20:04:28 +0530 Subject: [PATCH] Added null-check to vtlib helper method --- include/utils/VtlibUtils.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/utils/VtlibUtils.php b/include/utils/VtlibUtils.php index f38cdcecf..78040c553 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" -- GitLab