mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
fixes #699, make sure $_GET['tab'] does not include unexpected chars
This commit is contained in:
parent
9fa8f3069c
commit
3ae62ce118
1 changed files with 5 additions and 0 deletions
|
@ -159,6 +159,11 @@ else
|
|||
$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
|
||||
$conf_link = $link_start.'configuration&section=';
|
||||
|
||||
// $_GET['tab'] is often used to perform and
|
||||
// include('admin_page_'.$_GET['tab'].'.php') : we need to protect it to
|
||||
// avoid any unexpected file inclusion
|
||||
check_input_parameter('tab', $_GET, false, '/^[a-zA-Z\d_-]+$/');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Template init |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue