[BUGFIX] Fix empty globalString LIT condition comparison 85/30985/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Wed, 4 Jun 2014 14:40:53 +0000 (16:40 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 21 Jun 2014 08:10:33 +0000 (10:10 +0200)
commit6053d15158701c1267af8029569c3903fff7f864
tree370f366215fe2d93a3d2dd11bdae8274f2185be0
parent9ebf372a168f14df33161349baee2710e2a58ea6
[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/30985
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