diff options
author | Urban Müller | 2007-10-16 14:16:35 +0000 |
---|---|---|
committer | Urban Müller | 2007-10-16 14:16:35 +0000 |
commit | d5ef6bd696f4142003d6a75597dc9149f95b8bbd (patch) | |
tree | c0ae1db38fc6bd0a13663fbf2cbfdb0fe2affc98 /it.class | |
parent | d65e5b9ed94a8cdf5d2ad8ad4bfb8c792c631acd (diff) | |
download | itools-d5ef6bd696f4142003d6a75597dc9149f95b8bbd.tar.gz itools-d5ef6bd696f4142003d6a75597dc9149f95b8bbd.tar.bz2 itools-d5ef6bd696f4142003d6a75597dc9149f95b8bbd.zip |
try not to mail passwords
Diffstat (limited to 'it.class')
-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); } |