aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/adm/index.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index 78c876808b..836d2556f8 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -430,6 +430,21 @@ function validate_config_vars($config_vars, &$cfg_array, &$error)
break;
+ // Absolute path
+ case 'lang':
+ if (!$cfg_array[$config_name])
+ {
+ break;
+ }
+
+ $cfg_array[$config_name] = basename($cfg_array[$config_name]);
+
+ if (!file_exists($phpbb_root_path . 'language/' . $cfg_array[$config_name] . '/'))
+ {
+ $error[] = $user->lang['WRONG_DATA_LANG'];
+ }
+ break;
+
// Relative path (appended $phpbb_root_path)
case 'rpath':
case 'rwpath':