/**
*
*
* @param $Var
* @param array $BlackList
*/
function cleanErrorArguments(&$Var, $BlackList = array('configuration', 'config', 'database', 'password'))
{
if (is_array($Var)) {
foreach ($Var as $Key => $Value) {
if (in_array(strtolower($Key), $BlackList)) {
$Var[$Key] = 'SECURITY';
} else {
if (is_object($Value)) {
$Value = Gdn_Format::objectAsArray($Value);
$Var[$Key] = $Value;
}
if (is_array($Value)) {
cleanErrorArguments($Var[$Key], $BlackList);
}
}
}
}
}