[FOLLOWUP][BUGFIX] Use mb_* methods directly instead of CharsetConverter 45/53245/2
authorBenni Mack <benni@typo3.org>
Sat, 17 Jun 2017 19:33:07 +0000 (21:33 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 17 Jun 2017 19:48:34 +0000 (21:48 +0200)
Fixing one issue with the wrong variable name.

Resolves: #81575
Releases: master, 8.7
Change-Id: I820a3bcfc9a250a35ca2bec69b71a40fc7c8d01a
Reviewed-on: https://review.typo3.org/53245
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index 812c833..27b26b2 100644 (file)
@@ -261,7 +261,7 @@ class GeneralUtility
         if ($chars > 0) {
             $string = mb_substr($string, 0, $chars, 'utf-8') . $appendString;
         } else {
-            $string = $appendString . mb_substr($string, $len, mb_strlen($string, 'utf-8'), 'utf-8');
+            $string = $appendString . mb_substr($string, $chars, mb_strlen($string, 'utf-8'), 'utf-8');
         }
         return $string;
     }