aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-04-07 20:59:33 +0000
committerplegall <plg@piwigo.org>2012-04-07 20:59:33 +0000
commit7f893c7b874f1030342c88be17bb39c930eefdbd (patch)
tree9a9090fb9fd34c45bba6cb71d0b96ed3756ddde1 /install.php
parentd6991c658e716b6483bd2e90fd662365cf6933d8 (diff)
bug 2610 fixed: make sure the $_GET['lang'] or $_GET['language'] is in the
list of available languages. git-svn-id: http://piwigo.org/svn/branches/2.3@13955 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install.php')
-rw-r--r--install.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.php b/install.php
index 9a877a25b..4271fdf26 100644
--- a/install.php
+++ b/install.php
@@ -178,6 +178,11 @@ $languages = new languages('utf-8');
if (isset($_GET['language']))
{
$language = strip_tags($_GET['language']);
+
+ if (!in_array($language, array_keys($languages->fs_languages)))
+ {
+ $language = PHPWG_DEFAULT_LANGUAGE;
+ }
}
else
{