From c59b052d7c84001fb267b38e24c20c51b33c6853 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 7 Apr 2012 21:00:51 +0000 Subject: merge r13955 from branch 2.3 to trunk 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/trunk@13956 68402e56-0260-453c-a942-63ccdbb3a9ee --- install.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'install.php') diff --git a/install.php b/install.php index 8cb1c844a..5e1153b22 100644 --- a/install.php +++ b/install.php @@ -165,6 +165,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 { -- cgit v1.2.3