summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2026-02-02 16:20:52 +0100
committerUrban Müller2026-02-03 18:25:46 +0100
commit5728fe01af19f2e9dcc593e3389f3543786e4655 (patch)
tree7cfe5687243cca538fc8b6e42f691e7fa78b51ba
parentfb044542ac0a8eaed4ec8750161fe748b0f88cbe (diff)
downloaditools-5728fe01af19f2e9dcc593e3389f3543786e4655.tar.gz
itools-5728fe01af19f2e9dcc593e3389f3543786e4655.tar.bz2
itools-5728fe01af19f2e9dcc593e3389f3543786e4655.zip
protect against broken utf8 in Accept:
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
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;
}