summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2025-10-03 14:33:04 +0200
committerUrban Müller2025-10-03 14:33:04 +0200
commit76f18b1cf62d04ae335a476ae241499f24b73fdc (patch)
treea67fe572ee8665407607cd74c1552b34a910e487 /it.class
parent8ff8b9aa50b5e2ac7a7cd1d872f4718facb4d9ae (diff)
downloaditools-76f18b1cf62d04ae335a476ae241499f24b73fdc.tar.gz
itools-76f18b1cf62d04ae335a476ae241499f24b73fdc.tar.bz2
itools-76f18b1cf62d04ae335a476ae241499f24b73fdc.zip
fix invalid utf8 in HTTP_ACCEPT (mail5151)
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 83cdfba..a6591b8 100644
--- a/it.class
+++ b/it.class
@@ -1366,7 +1366,7 @@ static function params2utf8()
$_COOKIE = it::any2utf8($_COOKIE);
$_FILES = it::any2utf8($_FILES);
- foreach (['PHP_SELF', 'SCRIPT_NAME', 'SCRIPT_URL', 'SCRIPT_URI', 'HTTP_USER_AGENT'] as $var)
+ foreach (['PHP_SELF', 'SCRIPT_NAME', 'SCRIPT_URL', 'SCRIPT_URI', 'HTTP_USER_AGENT', 'HTTP_ACCEPT'] as $var)
$_SERVER[$var] = it::any2utf8($_SERVER[$var]);
$urlfix = function($m) { return urlencode(it::any2utf8(urldecode($m[0]))); }; # NOPHPLINT