From 4179d2dc7141dc1dbd0e3457a404148b36a39a95 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 2 Nov 2017 17:12:04 +0100 Subject: hide passwords in subject as well --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) { -- cgit v1.2.3