From f06f3fea3676ce5c6c3cc8c696c82f97d5721047 Mon Sep 17 00:00:00 2001 From: Kay Strobach Date: Wed, 13 Nov 2024 17:46:21 +0100 Subject: [PATCH] [BUGFIX] ensure search works with utf-8 Signed-off-by: Kay Strobach --- Classes/Domain/Service/ValueService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Domain/Service/ValueService.php b/Classes/Domain/Service/ValueService.php index 307c0f1..023c361 100644 --- a/Classes/Domain/Service/ValueService.php +++ b/Classes/Domain/Service/ValueService.php @@ -177,6 +177,6 @@ protected function shortenString($string, $length = '30', $append = '...') if (strlen($string) <= $length) { return $string; } - return substr($string, 0, $length).$append; + return mb_substr($string, 0, $length).$append; } }