[BUGFIX] Reallow '0' as valid userFunc argument in TypoScript 32/46232/5
authorGernot Leitgab <office@leitgab.at>
Mon, 25 Jan 2016 18:13:24 +0000 (19:13 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 1 Feb 2016 12:32:47 +0000 (13:32 +0100)
commit545c81d51b894e759bb8c4608751476b33345a9f
tree03d0720bb84f15e9de89b924ccd2914f9fc628a3
parent32bb71293111ca776001908d9355d446fc40a254
[BUGFIX] Reallow '0' as valid userFunc argument in TypoScript

With #47301 the parsing of userFunc in TypoScript has changed.
The change prevents '0' as valid argument.

This patch fix the '0' bug but also adds some new unit tests.
The parser method also includes a bug with quoted values which are not the
last argument. this bug is now fixed too.

Resolves: #72936
Related: #47301
Releases: master, 7.6, 6.2
Change-Id: Ic8df6ea21642e012438dba0a6a299c15939ab119
Reviewed-on: https://review.typo3.org/46232
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php
typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/Fixtures/ConditionMatcherUserFuncs.php