summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2020-05-13 13:47:53 +0200
committerUrban Müller2020-05-13 13:48:12 +0200
commit78ae466036ed812c298e01dccc6fdffa78e4cfba (patch)
treefd671fdc021152835471cb63558f4b01fa4bdf66 /it.class
parent5cdd490b2944dbf03fac21fbeb3959ea7a517835 (diff)
downloaditools-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.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index cbdd575..8ba5dd6 100644
--- a/it.class
+++ b/it.class
@@ -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: ");