summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-08-21 17:10:23 +0200
committerUrban Müller2017-08-21 17:10:23 +0200
commit64791c69da32f7194e0cd673bb0cc70a74d33013 (patch)
treef254ea65b1df89658f7e782d5f68e4e9e822dd08
parenta1ab45477e9f8fc60ff9632b06370ed947cf64ec (diff)
downloaditools-64791c69da32f7194e0cd673bb0cc70a74d33013.tar.gz
itools-64791c69da32f7194e0cd673bb0cc70a74d33013.tar.bz2
itools-64791c69da32f7194e0cd673bb0cc70a74d33013.zip
hide passwords in urls as well
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 50d171c..47ce722 100644
--- a/it.class
+++ b/it.class
@@ -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()));