From 5728fe01af19f2e9dcc593e3389f3543786e4655 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 2 Feb 2026 16:20:52 +0100 Subject: protect against broken utf8 in Accept: --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 8284093..729f055 100644 --- a/it_debug.class +++ b/it_debug.class @@ -108,7 +108,7 @@ static function setup() if (ob_get_level() == 0 && $_SERVER['REMOTE_ADDR']) ob_start(); # prevent later 'headers already sent' error - if ($_SERVER['REMOTE_ADDR'] && !EDC('edplain') && it::match('(?:^|,)\s*text/html\s*(?:,|$)', $_SERVER['HTTP_ACCEPT'])) + if ($_SERVER['REMOTE_ADDR'] && !EDC('edplain') && it::match('(?:^|,)\s*text/html\s*(?:,|$)', $_SERVER['HTTP_ACCEPT'], ['utf8' => false])) self::$force_html = true; } -- cgit v1.2.3