[BUGFIX] SqlParser: trim all kinds of whitespaces
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 29 Nov 2012 22:55:57 +0000 (23:55 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 1 Dec 2012 11:48:10 +0000 (12:48 +0100)
commitc7e16c67a3984d75b67dc2902a096eda6e91276f
treebc72ccff5ad62e5411956528f602267709a6e886
parentf9e3d2188b9e6c904ec468503ff9db18f7adeaf6
[BUGFIX] SqlParser: trim all kinds of whitespaces

SqlParser only trimmed semicolon and newlines
from end of string. Make it strip all characters
usually stripped by trim().

Add a unit test to avoid regressions.

Change-Id: I2ddc1fca2ac0db1b6ca0989c93c37ab39e0675d8
Fixes: #43470
Releases: 4.5, 4.6, 4.7, 6.0, 6.1
Reviewed-on: http://review.typo3.org/16875
Tested-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Database/SqlParser.php
typo3/sysext/core/Tests/Unit/Database/SqlParserTest.php