[BUGFIX] Reallow '0' as valid userFunc argument in TypoScript 28/46428/3
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 1 Feb 2016 13:32:06 +0000 (14:32 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 1 Feb 2016 14:24:43 +0000 (15:24 +0100)
commitdaaf9e00548274aa694105e5534e0628aa8bd59a
tree09be625a57761a1dbf3b1548aff4d019366d4683
parent05d27112bc2ff331612cf3f089ed30b54748b687
[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/46428
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/core/Tests/Unit/Configuration/ConditionMatcherUserFuncs.php
typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcherTest.php