Commit c492bda5 authored by Benni Mack's avatar Benni Mack Committed by Markus Klein
Browse files

[FOLLOWUP][BUGFIX] Use mb_* methods directly instead of CharsetConverter

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's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
parent fdd32b71
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment