Actions
Bug #55838
closedrevExplode returns invalid values if no delimiter in string
Start date:
2014-02-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:
Description
Currently revExplode will return an invalid value in this case:
$count
is set to 2$delimiter
does not exist in string
Example:
GeneralUtility::revExplode('_', 'test', 2),
Will return
array('', 'est')
but should return
array('test')
This also leads to an error in \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter->filterInlineChildren()
when updating file reference records in a content element:
#1317178794: No fileusage (sys_file_reference) found for given UID.
because one letter is cut off from the UID.
Actions