summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2007-10-16 14:16:35 +0000
committerUrban Müller2007-10-16 14:16:35 +0000
commitd5ef6bd696f4142003d6a75597dc9149f95b8bbd (patch)
treec0ae1db38fc6bd0a13663fbf2cbfdb0fe2affc98 /it.class
parentd65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd (diff)
downloaditools-d5ef6bd696f4142003d6a75597dc9149f95b8bbd.tar.gz
itools-d5ef6bd696f4142003d6a75597dc9149f95b8bbd.tar.bz2
itools-d5ef6bd696f4142003d6a75597dc9149f95b8bbd.zip
try not to mail passwords
Diffstat (limited to 'it.class')
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
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);
}