[BUGFIX] language condition does not match exact string 20/30920/3
authorSusanne Moog <typo3@susannemoog.de>
Fri, 20 Jun 2014 11:58:35 +0000 (13:58 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 20 Jun 2014 15:06:51 +0000 (17:06 +0200)
commit25e9e391fc2aea121a9258c776d5ecf97e03e210
treec15e1b5af832b67cab0d1e7d8a3d6fe5bd5ab91a
parent4f9732b170cc55689d2132db50f59c0d265a18e0
[BUGFIX] language condition does not match exact string

The documentation for conditions of type "language" states: "The values
must be a straight match with the value of getenv('HTTP_ACCEPT_LANGUAGE')
from PHP." (or you can use wildcards). Exact matches are actually
not working - and the unit test showing the problem was skipped.

Patch adds the feature as documented and adjusts the unit test.

Change-Id: I5691fff41c889476d8149d6f92c26731ad7bb1fd
Resolves: #59707
Releases: 6.3
Reviewed-on: https://review.typo3.org/30920
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php