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:
		| @@ -2454,3 +2454,8 @@ function html_sprintf() | ||||
|     } | ||||
|     return call_user_func_array('sprintf', $args); | ||||
| } | ||||
|  | ||||
| function _ve($var) | ||||
| { | ||||
|     return var_export($var, true); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user