Bug #72936
closedIt's not possible to use '0' as userFunc argument in TypoScript
100%
Description
If '0' is used as an argument, the user function is triggered with an empty array.
Example:
[userFunc = \Vendor\UserFunc\ClassName::methodName(0)] [...] [global]
To fix this issue the line
$funcValues = $matches[2][0] ? $this->parseUserFuncArguments($matches[2][0]) : array();
has to be changed to
$funcValues = $matches[2][0] !== '' ? $this->parseUserFuncArguments($matches[2][0]) : array();
in file EXT:core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46232
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46232
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46232
Updated by Gerrit Code Review almost 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46232
Updated by Gerrit Code Review almost 9 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46427
Updated by Gernot Leitgab almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 545c81d51b894e759bb8c4608751476b33345a9f.
Updated by Gerrit Code Review almost 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46428
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46428
Updated by Frank Nägler almost 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset daaf9e00548274aa694105e5534e0628aa8bd59a.