mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #573, check $_GET['tab'] against hacking attempt
git cherry-pick 4b33a0fd19
This commit is contained in:
@@ -31,9 +31,14 @@ include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
|
||||
$my_base_url = get_root_url().'admin.php?page=languages';
|
||||
|
||||
if (isset($_GET['tab']))
|
||||
{
|
||||
check_input_parameter('tab', $_GET, false, '/^(installed|update|new)$/');
|
||||
$page['tab'] = $_GET['tab'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$page['tab'] = 'installed';
|
||||
}
|
||||
|
||||
$tabsheet = new tabsheet();
|
||||
$tabsheet->set_id('languages');
|
||||
|
||||
Reference in New Issue
Block a user