From bb27969a215de7f0091f8bd1f63a74107dbb3a1e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 9 Jun 2021 13:20:06 +0200 Subject: never consider first word a debugparam, fixes cine.search.ch --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 7c3d556..2f8c79c 100644 --- a/it.class +++ b/it.class @@ -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); -- cgit v1.2.3