Skip to content

Commit

Permalink
do not use the FilePathSanitizer for language files
Browse files Browse the repository at this point in the history
  • Loading branch information
franzholz committed Dec 18, 2023
1 parent eb45279 commit e3f2338
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'title' => 'Shop System',
'description' => 'Advanced versions at ttproducts.de. Documented in the E-Book "Der TYPO3-Webshop" - Shop with listing in multiple languages, with order tracking, product variants, support for transactor extension, bill, creditpoint and voucher system.',
'state' => 'stable',
'version' => '2.14.21',
'version' => '2.14.22',
'manual' => true,
'author' => 'Franz Holzinger',
'author_company' => 'jambage.com',
Expand Down
4 changes: 0 additions & 4 deletions marker/class.tx_ttproducts_marker.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@ public function init ($conf, $piVars) {
$languageSubpath = '/Resources/Private/Language/';
$defaultMarkerFile = 'EXT:' . TT_PRODUCTS_EXT . $languageSubpath . 'locallang_marker.xlf';
$languageObj->loadLocalLang($defaultMarkerFile);
$sanitizer = GeneralUtility::makeInstance(FilePathSanitizer::class);

if ($language == '' || $language == 'default' || $language == 'en') {
if (!$markerFile) {
$markerFile = $defaultMarkerFile;
}
if ($markerFile) {
$markerFile = $sanitizer->sanitize($markerFile);
$languageObj->loadLocalLang($markerFile);
}
} else {
Expand All @@ -103,8 +101,6 @@ public function init ($conf, $piVars) {
if (!$markerFile) {
throw new \RuntimeException('Error in tt_products: No marker file for language "' . $language . '" set.', 50011);
}
$markerFile = $sanitizer->sanitize($markerFile);
// $markerFile = $GLOBALS['TSFE']->tmpl->getFileName($markerFile);
$languageObj->loadLocalLang($markerFile);
}
$locallang = $languageObj->getLocallang();
Expand Down

0 comments on commit e3f2338

Please sign in to comment.