diff options
author | Urban Müller | 2020-05-13 13:47:53 +0200 |
---|---|---|
committer | Urban Müller | 2020-05-13 13:48:12 +0200 |
commit | 78ae466036ed812c298e01dccc6fdffa78e4cfba (patch) | |
tree | fd671fdc021152835471cb63558f4b01fa4bdf66 /it.class | |
parent | 5cdd490b2944dbf03fac21fbeb3959ea7a517835 (diff) | |
download | itools-78ae466036ed812c298e01dccc6fdffa78e4cfba.tar.gz itools-78ae466036ed812c298e01dccc6fdffa78e4cfba.tar.bz2 itools-78ae466036ed812c298e01dccc6fdffa78e4cfba.zip |
it::error should cloak password2 in body as well
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -283,7 +283,7 @@ static function error($p = array()) $body .= $_FILES ? "\$_FILES: " . var_export($_FILES, true) . "\n\n" : ""; $body .= "Processes:\n" . it::exec('ps auxf | egrep -v "rotatelogs|getbanner|logaction|httpd|systemd|sd-pam"|egrep "^www|^cron"') . "\n"; $body .= $stackframes ? "Stack: " . print_r($stackframes, true) . "\n\n" : ""; - $body = it::replace(array('(pw|passw|password|secret)(\' => |\] => |=)[^&\s]*' => '$1$2********'), $body, array('utf8' => false)); + $body = it::replace(array('(pw|passw|password\d*|secret)(\' => |\] => |=)[^&\s]*' => '$1$2********'), $body, array('utf8' => false)); } $type = ($p['fatal'] ? "Fatal: " : "Error: "); |