From e3f2338b3072d8bd5eff15201b4ef94b4d52c18d Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Mon, 18 Dec 2023 16:57:16 +0100 Subject: [PATCH] do not use the FilePathSanitizer for language files --- ext_emconf.php | 2 +- marker/class.tx_ttproducts_marker.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ext_emconf.php b/ext_emconf.php index 49d780504..c93a7266a 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -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', diff --git a/marker/class.tx_ttproducts_marker.php b/marker/class.tx_ttproducts_marker.php index f0cade5e3..74b8403fb 100644 --- a/marker/class.tx_ttproducts_marker.php +++ b/marker/class.tx_ttproducts_marker.php @@ -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 { @@ -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();