diff options
-rw-r--r-- | it.class | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -204,6 +204,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate $body .= $_COOKIE ? "\$_COOKIE: " . print_r($_COOKIE, true) . "\n\n" : ""; $body .= $_SERVER ? "\$_SERVER: " . print_r($_SERVER, true) . "\n\n" : ""; $body .= $fulltrace ? "Stack: " . print_r($fulltrace, true) . "\n\n" : ""; + $body = it::replace(array('(pw|passw|password|secret)\] => .*' => '$1] => ********'), $body); mail($p['to'], $p['title'], $body); } |