[BUGFIX] "stripOrderBy, stripGroupBy" should remove double occurrence
authorLaurent Cherpit <lcherpit@ttree.ch>
Sat, 6 Oct 2012 16:32:19 +0000 (18:32 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sun, 7 Oct 2012 21:42:08 +0000 (23:42 +0200)
commite68b2e75b44edd41fa5e33e8ca880a072e384f29
tree58d1c9565bd2b0244dbf44c91a8890d2e4dc26da
parent53196cfe409c757ab6f878c8a120efaede6ce6c4
[BUGFIX] "stripOrderBy, stripGroupBy" should remove double occurrence

Sometimes the string handed over to stripOrderBy includes the ORDER BY
twice.
Tweak the regular expression to detect and fix that kind of errors.

The same applies to stripGroupBy.

Fixes: #41641
Releases: 6.0, 4.7, 4.6, 4.5

Change-Id: Ifc6315ce31cf2037a77ea4b3f9a56bcb623a6b68
Reviewed-on: http://review.typo3.org/15371
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/core/Classes/Database/DatabaseConnection.php
typo3/sysext/core/Tests/Unit/Database/DatabaseConnectionTest.php