From d5ef6bd696f4142003d6a75597dc9149f95b8bbd Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 16 Oct 2007 14:16:35 +0000 Subject: try not to mail passwords --- it.class | 1 + 1 file changed, 1 insertion(+) (limited to 'it.class') diff --git a/it.class b/it.class index 7c6daf3..55dd7a5 100644 --- a/it.class +++ b/it.class @@ -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); } -- cgit v1.2.3