From 6ca14a58b0888413a98ac0754a99524004df1c3a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 14 Oct 2019 15:07:45 +0200 Subject: [PATCH] PropertyModifier: multibyte-safe upper/lowercase fixes #710 --- library/Director/PropertyModifier/PropertyModifierLowercase.php | 2 +- library/Director/PropertyModifier/PropertyModifierUppercase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Director/PropertyModifier/PropertyModifierLowercase.php b/library/Director/PropertyModifier/PropertyModifierLowercase.php index 0f98336b..1291e702 100644 --- a/library/Director/PropertyModifier/PropertyModifierLowercase.php +++ b/library/Director/PropertyModifier/PropertyModifierLowercase.php @@ -8,6 +8,6 @@ class PropertyModifierLowercase extends PropertyModifierHook { public function transform($value) { - return strtolower($value); + return \mb_strtolower($value, 'UTF-8'); } } diff --git a/library/Director/PropertyModifier/PropertyModifierUppercase.php b/library/Director/PropertyModifier/PropertyModifierUppercase.php index 395227c6..84146f8a 100644 --- a/library/Director/PropertyModifier/PropertyModifierUppercase.php +++ b/library/Director/PropertyModifier/PropertyModifierUppercase.php @@ -8,6 +8,6 @@ class PropertyModifierUppercase extends PropertyModifierHook { public function transform($value) { - return strtoupper($value); + return \mb_strtoupper($value, 'UTF-8'); } }