mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #825, check user input on Batch Manager, unit mode, to prevent SQL injection
This commit is contained in:
@@ -47,6 +47,7 @@ trigger_notify('loc_begin_element_set_unit');
|
|||||||
|
|
||||||
if (isset($_POST['submit']))
|
if (isset($_POST['submit']))
|
||||||
{
|
{
|
||||||
|
check_input_parameter('element_ids', $_POST, false, '/^\d+(,\d+)*$/');
|
||||||
$collection = explode(',', $_POST['element_ids']);
|
$collection = explode(',', $_POST['element_ids']);
|
||||||
|
|
||||||
$datas = array();
|
$datas = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user