We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1a46d86c authored by mattl's avatar mattl

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).
parent 93c614c1
...@@ -2454,3 +2454,8 @@ function html_sprintf() ...@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment