Actions
Bug #19601
closedt3lib_div::trimExplode limit parameter leads to wrong result with non-empty requirement
Start date:
2008-11-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
First, look at the function that was extended during TYPO3 4.3 development:
trimExplode($delim, $string, $onlyNonEmptyValues = false, $limit = 0)
Imagine a list like this:
$string = 'aa,,bb';
1) trimExplode(',', $string, false, 2) returns array('aa', ',bb') -> fine
2) trimExplode(',', $string, true, 2) returns array('aa', ',bb') -> false since it should be array('aa', 'bb') and the empty value removed <b>before</b>
(issue imported from #M9779)
Files
Actions