[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 12:00:24 +0000 (13:00 +0100)
commit4e7124f3ec03473f5d2a6f169c3b738213681e18
tree50381d4bb88ba637cc77fdd8adcc022a628b2b79
parent7642b7d461337b83ac49bc6a779be19c84ce1832
[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/16912
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Database/SqlParser.php
typo3/sysext/core/Tests/Unit/Database/SqlParserTest.php