[BUGFIX] Fix empty globalString LIT condition comparison
An empty "LIT:" condition results in NULL, so the strict compare doesn't match with the empty string. Solution is to cast the haystack to string before, like it was done anyway later in the preg_match. Releases: 6.3, 6.2, 6.1 Resolves: #59344 Change-Id: I1e4b00e454d921eedd0c03a1767d4ec57c321bd7 Reviewed-on: https://review.typo3.org/30992 Reviewed-by: Markus Klein Tested-by: Markus Klein
Showing
- typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php 3 additions, 4 deletions...uration/TypoScript/ConditionMatching/ConditionMatcher.php
- typo3/sysext/backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 14 additions, 4 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
- typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php 6 additions, 6 deletions...TypoScript/ConditionMatching/AbstractConditionMatcher.php
- typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php 2 additions, 2 deletions...uration/TypoScript/ConditionMatching/ConditionMatcher.php
- typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php 10 additions, 0 deletions...ion/TypoScript/ConditionMatching/ConditionMatcherTest.php
Please register or sign in to comment