diff options
author | Urban Müller | 2021-02-22 14:06:38 +0100 |
---|---|---|
committer | Urban Müller | 2021-02-22 14:11:17 +0100 |
commit | 56a6b888356a934d6f78703139a25e4beab77451 (patch) | |
tree | a889f1c19afa8e5de6c0581479ebbbb0c69631e7 | |
parent | 6f7b883ab4d340610ac3402ea88dc07fa0dc80a7 (diff) | |
download | itools-56a6b888356a934d6f78703139a25e4beab77451.tar.gz itools-56a6b888356a934d6f78703139a25e4beab77451.tar.bz2 itools-56a6b888356a934d6f78703139a25e4beab77451.zip |
avoid lowercase "Fatal:" e.g. when debug_timerlog set programmatically
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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']; |