From 69b93eedb386ff0f3618b1f1de90fd8b1d21a7e2 Mon Sep 17 00:00:00 2001 From: "raphael.cavalcante" Date: Tue, 16 May 2023 20:52:39 -0300 Subject: [PATCH] =?UTF-8?q?:BUG:=20#286=20corrigido=20o=20erro=20de=20codi?= =?UTF-8?q?fia=C3=A7=C3=A3o=20de=20multibyte=20do=20substr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/classes/webform/TGrid.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/classes/webform/TGrid.class.php b/base/classes/webform/TGrid.class.php index ede73c8c..0dbd1917 100644 --- a/base/classes/webform/TGrid.class.php +++ b/base/classes/webform/TGrid.class.php @@ -588,7 +588,7 @@ public function show( $boolPrint = true ) { $len = StringHelper::strlen($tdValue); if ( $len>$objColumn->getMaxTextLength() ){ $cell->setProperty('title', $tdValue); - $tdValue = substr($tdValue, 0, $objColumn->getMaxTextLength()-3).' (...)'; + $tdValue = mb_substr($tdValue, 0, $objColumn->getMaxTextLength()-3).' (...)'; } } //$tdValue = isset($res[strtoupper($fieldName)][$k]) && $res[strtoupper($fieldName)][$k] ? $res[strtoupper($fieldName)][$k]: '
---
';