From 56a6b888356a934d6f78703139a25e4beab77451 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 22 Feb 2021 14:06:38 +0100 Subject: avoid lowercase "Fatal:" e.g. when debug_timerlog set programmatically --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it.class b/it.class index 64a03c1..1a54a58 100644 --- a/it.class +++ b/it.class @@ -295,8 +295,8 @@ static function error($p = array(), $extra = null) } $type = ($p['fatal'] ? "Fatal: " : "Error: "); - $debugparams = it::replace(['^debug_' => ""], it::grep('^debug_(.*)', array_keys($GLOBALS))); - if (!it::is_live() || array_diff($debugparams, it::match('[-\w]+', $GLOBALS['ULTRAHOME'], ['all' => true]), ["devel", "twin", "utf8check", gethostname()])) + $debugparams = it::match('(?:^|\.)([^-.]+)', $_SERVER['HTTP_HOST'], ['all' => true]); + if (!it::is_live() || array_diff($debugparams, it::match('[-\w]+', $GLOBALS['ULTRAHOME'], ['all' => true]), ["devel", "twin", gethostname()])) $type = mb_strtolower($type); $user = posix_getpwuid(posix_geteuid())['name']; -- cgit v1.2.3