Skip to content
Snippets Groups Projects
Commit 3ce6b692 authored by Sascha Egerer's avatar Sascha Egerer Committed by Benjamin Mack
Browse files

[BUGFIX] Fix parseUserFuncArguments to respect 0 as argument

"0" must be an valid "last argument" value in the parseUserFuncArguments
method.

The implementation of the argument iteration must strictly check if
the arguments string is empty.

Change-Id: I8cee20a48030ea9163f55723d9027f39c43e5e1c
Resolves: #68132
Related: #61256
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/41218


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenjamin Mack <benni@typo3.org>
Tested-by: default avatarBenjamin Mack <benni@typo3.org>
parent c257cfe1
Branches
Tags
No related merge requests found
...@@ -469,7 +469,7 @@ abstract class AbstractConditionMatcher { ...@@ -469,7 +469,7 @@ abstract class AbstractConditionMatcher {
protected function parseUserFuncArguments($arguments) { protected function parseUserFuncArguments($arguments) {
$result = array(); $result = array();
$arguments = trim($arguments); $arguments = trim($arguments);
while ($arguments) { while ($arguments !== '') {
if ($arguments[0] === ',') { if ($arguments[0] === ',') {
$result[] = ''; $result[] = '';
$arguments = substr($arguments, 1); $arguments = substr($arguments, 1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment