[BUGFIX] Wrong handling of delimiter in revExplode() 26/27926/5
authorMarkus Klein <klein.t3@mfc-linz.at>
Fri, 28 Feb 2014 01:41:30 +0000 (02:41 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 3 Mar 2014 16:08:14 +0000 (17:08 +0100)
commitda36a43db93c917f3af203c20af3ce977ba33c4f
tree19dd53f1f9f69cc09d476433b69b68f3ed838a45
parent04f66dba2538cfc3c7de8578e4f2bd35900702af
[BUGFIX] Wrong handling of delimiter in revExplode()

The delimiter has to be reversed for the case of limit 2,
as the search is performed on the non-reversed string.
Otherwise the function will yield different results for
limits greater than 2.

Resolves: #56405
Releases: 6.2
Change-Id: I077d38918d98fbe2e5cd153c75b115e0d95734f8
Reviewed-on: https://review.typo3.org/27926
Reviewed-by: Georg Tiefenbrunn
Tested-by: Georg Tiefenbrunn
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php