]> git.mxchange.org Git - core.git/commitdiff
Don't allow underscores or dashes in application names (remove them).
authorRoland Haeder <roland@mxchange.org>
Sun, 5 Apr 2015 23:52:51 +0000 (01:52 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 5 Apr 2015 23:52:51 +0000 (01:52 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/language/class_LanguageSystem.php

index ec094c9eef6ca37bc2438fd481fa759cc006183e..ece1ad573e3b24425f63a063ecfc9ba5cca207c8 100644 (file)
@@ -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