summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-11-06 14:35:33 +0100
committerUrban Müller2017-11-06 14:35:33 +0100
commit7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6 (patch)
treebe44630a0aa2a3ded68a3ff59671b00082936c1c /it.class
parent4179d2dc7141dc1dbd0e3457a404148b36a39a95 (diff)
downloaditools-7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6.tar.gz
itools-7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6.tar.bz2
itools-7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6.zip
correctly hide passwords in var_export format
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 f1ea26f..52b554d 100644
--- a/it.class
+++ b/it.class
@@ -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()));