diff options
Diffstat (limited to 'phpBB/install/index.php')
| -rwxr-xr-x | phpBB/install/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 2baa7c2a2c..e721e90bf6 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -118,7 +118,7 @@ include($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); require($phpbb_root_path . 'includes/functions_install.' . $phpEx); // Try and load an appropriate language if required -$language = request_var('language', ''); +$language = basename(request_var('language', '')); if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) { @@ -171,6 +171,11 @@ if (!$language) closedir($dir); } +if (!file_exists($phpbb_root_path . 'language/' . $language)) +{ + die('No language found!'); +} + // And finally, load the relevant language files include($phpbb_root_path . 'language/' . $language . '/common.' . $phpEx); include($phpbb_root_path . 'language/' . $language . '/acp/common.' . $phpEx); |
