From 7099c9d5136878b6af643cf83ec1382ae99bd7d2 Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Wed, 17 Jan 2018 23:02:13 +0900 Subject: [PATCH] Fix Multibyte::strtolower() --- lib/Cake/I18n/Multibyte.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/I18n/Multibyte.php b/lib/Cake/I18n/Multibyte.php index 797044a85..c11082ac0 100644 --- a/lib/Cake/I18n/Multibyte.php +++ b/lib/Cake/I18n/Multibyte.php @@ -554,7 +554,7 @@ class Multibyte { if (!empty($keys)) { foreach ($keys as $key => $value) { - if ($keys[$key]['upper'] == $char && count($keys[$key]['lower'][0]) === 1) { + if ($keys[$key]['upper'] == $char && count($keys[$key]['lower']) > 0) { $lowerCase[] = $keys[$key]['lower'][0]; $matched = true; break 1;