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
This commit is contained in:
plegall
2012-04-07 20:59:33 +00:00
parent d6991c658e
commit 7f893c7b87
3 changed files with 17 additions and 0 deletions
+5
View File
@@ -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
{