mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #847, CVE-2018-5692 protect a few user input variables
This commit is contained in:
@@ -42,6 +42,7 @@ trigger_notify('loc_begin_admin');
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
check_input_parameter('page', $_GET, false, '/^[a-zA-Z\d_-]+$/');
|
||||
check_input_parameter('section', $_GET, false, '/^[a-z]+[a-z_\/-]*(\.php)?$/i');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Direct actions |
|
||||
|
||||
Reference in New Issue
Block a user