lib/util.php quick function to do var_export($var,true)

Immensely useful when debugging and we want to put quotes around strings,
potentially stopping any "evil logging attacks" (where input data masks
as logging data).
This commit is contained in:
Mikael Nordfeldth 2016-01-11 19:52:54 +01:00
parent 93c614c184
commit 1a46d86ca6

View File

@ -2454,3 +2454,8 @@ function html_sprintf()
} }
return call_user_func_array('sprintf', $args); return call_user_func_array('sprintf', $args);
} }
function _ve($var)
{
return var_export($var, true);
}