From c2a0bbcf575b0ff3417604647ad8db97521bc278 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 6 Apr 2015 01:52:51 +0200 Subject: [PATCH] Don't allow underscores or dashes in application names (remove them). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/language/class_LanguageSystem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/classes/main/language/class_LanguageSystem.php b/inc/classes/main/language/class_LanguageSystem.php index ec094c9e..ece1ad57 100644 --- a/inc/classes/main/language/class_LanguageSystem.php +++ b/inc/classes/main/language/class_LanguageSystem.php @@ -78,7 +78,8 @@ class LanguageSystem extends BaseFrameworkSystem implements ManageableLanguage, // 2) Try to build it $languageBasePath = sprintf('%sapplication/%s/language/', $langInstance->getConfigInstance()->getConfigEntry('base_path'), - $applicationInstance->getAppShortName() + // Don't allow any underscores/dashes in application names + str_replace(array('_', '-'), array('', ''), $applicationInstance->getAppShortName()) ); } // END - if -- 2.30.2