Actions
Bug #17301
closedWrong cropping of multi-byte $TCA field
Start date:
2007-05-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In function checkValue_input, class.t3lib_tcemain.php:1264
OLD CODE:
// Secures the string-length to be less than max. Will probably make problems with multi-byte strings!
if (intval($tcaFieldConf['max'])>0) {$value = substr($value,0,intval($tcaFieldConf['max']));}
NEW CODE:
if (intval($tcaFieldConf['max'])>0)
{
global $LANG;
$value = $LANG->csConvObj->substr($LANG->charSet,$value,0,intval($tcaFieldConf['max']));
}
(issue imported from #M5618)
Files
Actions