diff options
author | Urban Müller | 2017-11-06 14:35:33 +0100 |
---|---|---|
committer | Urban Müller | 2017-11-06 14:35:33 +0100 |
commit | 7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6 (patch) | |
tree | be44630a0aa2a3ded68a3ff59671b00082936c1c | |
parent | 4179d2dc7141dc1dbd0e3457a404148b36a39a95 (diff) | |
download | itools-7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6.tar.gz itools-7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6.tar.bz2 itools-7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6.zip |
correctly hide passwords in var_export format
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -260,7 +260,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|secret)(\' => |\] => |=)[^&\s]*' => '$1$2********'), $body, array('utf8' => false)); } it::mail(array('To' => $p['to'], 'Subject' => "Alert: " . substr($p['title'], 0, 160), 'Body' => $body, 'Cc' => $GLOBALS['it_defaultconfig']['error_cc'], 'forcemail' => !it::is_devel())); |