[BUGFIX] Fix empty globalString LIT condition comparison 59/30559/5
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Wed, 4 Jun 2014 14:40:53 +0000 (16:40 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 20 Jun 2014 22:04:17 +0000 (00:04 +0200)
commit36b6df8403b685f0f543135620c773dad67a862b
treec54f389fea17f70cd8e9a4aee8374d4fbd70083b
parentdf36bbb75ca55c323e26bf8b5e2e8b2121fac5a0
[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/30559
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Marc Bastian Heinrichs
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/backend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php