Skip to content
Snippets Groups Projects
Commit 6c64247a authored by Prasad's avatar Prasad
Browse files

Added null-check to vtlib helper method

parent befb8f48
No related branches found
No related tags found
No related merge requests found
...@@ -738,6 +738,8 @@ function vtlib_purify($input, $ignore = false) { ...@@ -738,6 +738,8 @@ function vtlib_purify($input, $ignore = false) {
* Helpful to keep away quote-injection xss attacks in the templates. * Helpful to keep away quote-injection xss attacks in the templates.
*/ */
function vtlib_strip_quoted($input) { function vtlib_strip_quoted($input) {
if (is_null($input)) return $input;
$output = $input; $output = $input;
/* /*
* Discard anything in "double quoted until'you find next double quote" * Discard anything in "double quoted until'you find next double quote"
......
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