Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Translate.php')
-rw-r--r--core/Translate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Translate.php b/core/Translate.php
index 1d2ea47e6a..16115d4ada 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -74,7 +74,7 @@ class Piwik_Translate
private function loadTranslation($language)
{
$path = PIWIK_INCLUDE_PATH . '/lang/' . $language . '.php';
- if(!is_readable($path))
+ if(!Piwik_Common::isValidFilename($language) || !is_readable($path))
{
throw new Exception(Piwik_TranslateException('General_ExceptionLanguageFileNotFound', array($language)));
}