From: Roland Haeder Date: Sun, 5 Apr 2015 23:52:51 +0000 (+0200) Subject: Don't allow underscores or dashes in application names (remove them). X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=c2a0bbcf575b0ff3417604647ad8db97521bc278;hp=32702da3e7035c52f9124720310b797e05fd7410 Don't allow underscores or dashes in application names (remove them). Signed-off-by: Roland Häder --- 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