mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #667, check $_GET['page'] to avoid XSS
This can be an issue only on Internet Explorer
This commit is contained in:
@@ -41,6 +41,8 @@ trigger_notify('loc_begin_admin');
|
|||||||
|
|
||||||
check_status(ACCESS_ADMINISTRATOR);
|
check_status(ACCESS_ADMINISTRATOR);
|
||||||
|
|
||||||
|
check_input_parameter('page', $_GET, false, '/^[a-zA-Z\d_-]+$/');
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
// | Direct actions |
|
// | Direct actions |
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|||||||
Reference in New Issue
Block a user