ignore . and .., as it gives an open_basedir warning, it is no application directory anyway

This commit is contained in:
Ralf Becker 2013-02-21 06:32:30 +00:00
parent c46777826f
commit 151b800a5a

View File

@ -448,7 +448,7 @@ class translation
$loaded = array(); $loaded = array();
foreach($load_app == 'all-apps' ? scandir(EGW_SERVER_ROOT) : (array)$load_app as $app_dir) foreach($load_app == 'all-apps' ? scandir(EGW_SERVER_ROOT) : (array)$load_app as $app_dir)
{ {
if (!is_dir(EGW_SERVER_ROOT.'/'.$app_dir) || if ($app_dir[0] == '.' || !is_dir(EGW_SERVER_ROOT.'/'.$app_dir) ||
!@file_exists($file=self::get_lang_file($app_dir, $lang)) || !@file_exists($file=self::get_lang_file($app_dir, $lang)) ||
!($f = fopen($file, 'r'))) !($f = fopen($file, 'r')))
{ {