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:
authorrobocoder <anthon.pang@gmail.com>2010-12-21 08:05:03 +0300
committerrobocoder <anthon.pang@gmail.com>2010-12-21 08:05:03 +0300
commit7494b80ca48f1ab42ae3eae5f6d817409e2aa71a (patch)
treebe6801288062a0314e55f549e2c114a5dd4b5a8d /core/Translate.php
parent7eee40c9b052f46d945753a81277697cddf03f2d (diff)
refs #1632
git-svn-id: http://dev.piwik.org/svn/trunk@3481 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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)));
}