diff options
author | Urban Müller | 2021-06-09 13:20:06 +0200 |
---|---|---|
committer | Urban Müller | 2021-06-09 13:20:06 +0200 |
commit | bb27969a215de7f0091f8bd1f63a74107dbb3a1e (patch) | |
tree | 6edbfd02feffd4e4d396beede624ea6866bd2bf6 | |
parent | 030b4d6e52c48f835aca3177438109479f84ad6c (diff) | |
download | itools-bb27969a215de7f0091f8bd1f63a74107dbb3a1e.tar.gz itools-bb27969a215de7f0091f8bd1f63a74107dbb3a1e.tar.bz2 itools-bb27969a215de7f0091f8bd1f63a74107dbb3a1e.zip |
never consider first word a debugparam, fixes cine.search.ch
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -297,7 +297,7 @@ static function error($p = array(), $extra = null) } $type = ($p['fatal'] ? (it::is_live() ? "FATAL: " : "Fatal: ") : "Error: "); - $debugparams = it::match('(?:^|\.)([^-.]+)', $_SERVER['HTTP_HOST'], ['all' => true]); + $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); |