From 534899acf620b83936a8e445c806cc481d789050 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 10 Aug 2015 13:59:59 +0200 Subject: correctly handle non-utf8 in keys --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 8faac1f..e6f8006 100644 --- a/it.class +++ b/it.class @@ -429,8 +429,8 @@ static function any2utf8($value, $errprefix = "") if (is_array($value)) { foreach ($value as $idx => $v) - if (is_string($v) || is_array($v)) - $value[$idx] = self::any2utf8($v, $errprefix); + $newarr[self::any2utf8($idx)] = is_string($v) || is_array($v) ? self::any2utf8($v, $errprefix) : $v; + $value = $newarr; } else if (is_string($value)) { -- cgit v1.2.3