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:
parent
93c614c184
commit
1a46d86ca6
|
@ -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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user