aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/index.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-22 15:15:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-22 15:15:20 +0000
commit3ff475bcbba49cf55e7f4e803f7d16f7b0c93759 (patch)
tree493b39b0d9ccc9790bf9fe93ddacd7caf71f6477 /phpBB/install/index.php
parentd8013e9c75eed6f9aed156029685c7bfb0fc9252 (diff)
downloadforums-3ff475bcbba49cf55e7f4e803f7d16f7b0c93759.tar
forums-3ff475bcbba49cf55e7f4e803f7d16f7b0c93759.tar.gz
forums-3ff475bcbba49cf55e7f4e803f7d16f7b0c93759.tar.bz2
forums-3ff475bcbba49cf55e7f4e803f7d16f7b0c93759.tar.xz
forums-3ff475bcbba49cf55e7f4e803f7d16f7b0c93759.zip
some fixes... hopefully not breaking something. :o
git-svn-id: file:///svn/phpbb/trunk@7216 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/index.php')
-rwxr-xr-xphpBB/install/index.php7
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);