[BUGFIX] Reallow '0' as valid userFunc argument in TypoScript 27/46427/2
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:39:46 +0000 (13:39 +0100)
commit6aede9549397175a5bd9f8c1e7e52539fee947cd
tree4a01f0ef59891831699c92ad8deda3e75c90e7a0
parent5055f72f641935b4328fe0052ba5539547a971db
[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/46427
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