diff options
author | Urban Müller | 2017-08-21 17:10:23 +0200 |
---|---|---|
committer | Urban Müller | 2017-08-21 17:10:23 +0200 |
commit | 64791c69da32f7194e0cd673bb0cc70a74d33013 (patch) | |
tree | f254ea65b1df89658f7e782d5f68e4e9e822dd08 /it.class | |
parent | a1ab45477e9f8fc60ff9632b06370ed947cf64ec (diff) | |
download | itools-64791c69da32f7194e0cd673bb0cc70a74d33013.tar.gz itools-64791c69da32f7194e0cd673bb0cc70a74d33013.tar.bz2 itools-64791c69da32f7194e0cd673bb0cc70a74d33013.zip |
hide passwords in urls as well
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -259,7 +259,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)\] => .*' => '$1] => ********'), $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' => substr($p['title'], 0, 160), 'Body' => $body, 'Cc' => $GLOBALS['it_defaultconfig']['error_cc'], 'forcemail' => !it::is_devel())); |