From 77f2c8cb42f33f807d0fe744380bc661085d1926 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 25 Aug 2015 21:49:10 -0400 Subject: [PATCH] Use mb_strtolower in case-insensitive sorting. We should try to support unicode everywhere people might use it. --- lib/Cake/Utility/Hash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Hash.php b/lib/Cake/Utility/Hash.php index a5ccf0ab2..8ef89c677 100644 --- a/lib/Cake/Utility/Hash.php +++ b/lib/Cake/Utility/Hash.php @@ -909,7 +909,7 @@ class Hash { } if ($ignoreCase) { - $values = array_map('strtolower', $values); + $values = array_map('mb_strtolower', $values); } array_multisort($values, $dir, $type, $keys, $dir);