[BUGFIX] language condition does not match exact string
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Configuration / TypoScript / ConditionMatching / AbstractConditionMatcher.php
index 0fb0697..036cc5d 100644 (file)
@@ -292,6 +292,9 @@ abstract class AbstractConditionMatcher {
                                }
                                break;
                        case 'language':
+                               if (GeneralUtility::getIndpEnv('HTTP_ACCEPT_LANGUAGE') === $value) {
+                                       return TRUE;
+                               }
                                $values = GeneralUtility::trimExplode(',', $value, TRUE);
                                foreach ($values as $test) {
                                        if (preg_match('/^\\*.+\\*$/', $test)) {