From 8395a13bee7968c88f1ac977f1751cca2fa5029a Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 11 Dec 2017 16:40:35 +0100 Subject: shorter error mail titles --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index cda7880..e54137e 100644 --- a/it.class +++ b/it.class @@ -244,7 +244,7 @@ static function error($p = array()) if ($sendmail) # we're mailing: send maximum info { - $p['title'] = it::replace(['alert:|server:|^: "' => "", '(pw|passw|password|secret)(=)[^&\s]*' => '$1$2*****'], $GLOBALS['ULTRASITE'] . ": " . $p['title']) . " (via " . getenv('HOSTNAME') . ")"; + $p['title'] = it::replace(['alert:|server:|^: "' => "", '(pw|passw|password|secret)(=)[^&\s]*' => '$1$2*****'], it::match('[^.]*', $GLOBALS['ULTRASITE']) . ": " . $p['title']) . " (via " . getenv('HOSTNAME') . ")"; if (!$p['omitdebuginfo']) { -- cgit v1.2.3