[BUGFIX] Restrict l10n fallback to cms extension 48/51348/4
authorPhilipp Gampe <philipp.gampe@typo3.org>
Wed, 18 Jan 2017 15:53:20 +0000 (16:53 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 19 Jan 2017 20:26:55 +0000 (21:26 +0100)
The check for the l10n fallback for the cms extension was too wide, also
covering arbitrary extension names starting with "cms".

Restrict the check to "cms/" now.

Resolves: #79377
Releases: 7.6
Change-Id: Idb07d4499fe0b75a0027e58a0d421c377054624f
Reviewed-on: https://review.typo3.org/51348
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Localization/LocalizationFactory.php

index 3e8885e..ac32002 100644 (file)
@@ -81,7 +81,7 @@ class LocalizationFactory implements \TYPO3\CMS\Core\SingletonInterface
     {
         // @deprecated since CMS 7, will be removed with CMS 8
         // this is a fallback to convert references to old 'cms' locallang files to the new location
-        if (strpos($fileReference, 'EXT:cms') === 0) {
+        if (strpos($fileReference, 'EXT:cms/') === 0) {
             $mapping = [
                 'cms/web_info/loallang.xlf' => 'frontend/Resources/Private/Language/locallang_webinfo.xlf',
                 'cms/locallang_ttc.xlf' => 'frontend/Resources/Private/Language/locallang_ttc.xlf',