summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-11-02 17:12:04 +0100
committerUrban Müller2017-11-02 17:12:04 +0100
commit4179d2dc7141dc1dbd0e3457a404148b36a39a95 (patch)
tree922a48091776347b5b75dbec143fd625517ce6c3 /it.class
parentcc5f3aa9a41138629588b863373351f9ec5bf457 (diff)
downloaditools-4179d2dc7141dc1dbd0e3457a404148b36a39a95.tar.gz
itools-4179d2dc7141dc1dbd0e3457a404148b36a39a95.tar.bz2
itools-4179d2dc7141dc1dbd0e3457a404148b36a39a95.zip
hide passwords in subject 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 e42bbeb..f1ea26f 100644
--- a/it.class
+++ b/it.class
@@ -240,7 +240,7 @@ static function error($p = array())
if ($sendmail) # we're mailing: send maximum info
{
- $p['title'] = it::replace(['\.[^:]*' => "", '(alert|server): ' => "", "^: " => ""], $GLOBALS['ULTRASITE'] . ": ") . $p['title'] . " (via " . getenv('HOSTNAME') . ")";
+ $p['title'] = it::replace(['\.[^:]*|alert:|server:|^: "' => "", '(pw|passw|password|secret)(\] => |=)[^&\s]*' => '$1$2*****'], $GLOBALS['ULTRASITE'] . ": ") . $p['title'] . " (via " . getenv('HOSTNAME') . ")";
if (!$p['omitdebuginfo'])
{