mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1352 check language name (user input)
This commit is contained in:
@@ -21,6 +21,9 @@ $languages = new languages();
|
||||
$languages->get_db_languages();
|
||||
|
||||
//--------------------------------------------------perform requested actions
|
||||
check_input_parameter('action', $_GET, false, '/^(activate|deactivate|set_default|delete)$/');
|
||||
check_input_parameter('language', $_GET, false, '/^('.join('|', array_keys($languages->fs_languages)).')$/');
|
||||
|
||||
if (isset($_GET['action']) and isset($_GET['language']))
|
||||
{
|
||||
$page['errors'] = $languages->perform_action($_GET['action'], $_GET['language']);
|
||||
|
||||
Reference in New Issue
Block a user