summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-02-22 14:06:38 +0100
committerUrban Müller2021-02-22 14:11:17 +0100
commit56a6b888356a934d6f78703139a25e4beab77451 (patch)
treea889f1c19afa8e5de6c0581479ebbbb0c69631e7
parent6f7b883ab4d340610ac3402ea88dc07fa0dc80a7 (diff)
downloaditools-56a6b888356a934d6f78703139a25e4beab77451.tar.gz
itools-56a6b888356a934d6f78703139a25e4beab77451.tar.bz2
itools-56a6b888356a934d6f78703139a25e4beab77451.zip
avoid lowercase "Fatal:" e.g. when debug_timerlog set programmatically
-rw-r--r--it.class4
1 files 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'];