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.
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27524
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27524
Updated by Alexander Stehlik over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dda0354d615ed247cae4108cbf638c6c5308f29c.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed
Actions