From 3fcc703375f8cfe07e30c20283504934372a7ae2 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 26 Feb 2013 11:08:20 +0000 Subject: [PATCH] do not try to break out of egw server root when iterating over all apps --- phpgwapi/inc/class.translation.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index f87199da5b..753777f5f2 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -448,6 +448,7 @@ class translation $loaded = array(); foreach($load_app == 'all-apps' ? scandir(EGW_SERVER_ROOT) : (array)$load_app as $app_dir) { + if ($load_app == 'all-apps' && $app_dir=='..') continue; // do not try to break out of egw server root if ($app_dir[0] == '.' || !is_dir(EGW_SERVER_ROOT.'/'.$app_dir) || !@file_exists($file=self::get_lang_file($app_dir, $lang)) || !($f = fopen($file, 'r')))