From 334aedfcd4ef61ca3156cd68e7668fc585e86b6d Mon Sep 17 00:00:00 2001 From: mattpiwik <matthieu.aubry@gmail.com> Date: Fri, 9 Jul 2010 16:29:45 +0000 Subject: [PATCH] Fixing issue when include path is not set in global scope git-svn-id: http://dev.piwik.org/svn/trunk@2462 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- core/Loader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/Loader.php b/core/Loader.php index b6d24e2b7b..9d9b026ff8 100644 --- a/core/Loader.php +++ b/core/Loader.php @@ -58,6 +58,10 @@ class Piwik_Loader for($i = 0; $i < count(self::$dirs); $i++) { $path = PIWIK_INCLUDE_PATH . self::$dirs[$i] . $classPath . '.php'; + if(strpos($path, '..')) + { + continue; + } if(file_exists($path)) { require_once $path; // prefixed by PIWIK_INCLUDE_PATH -- GitLab