mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01: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']))
|
||||
{
|
||||
check_input_parameter('element_ids', $_POST, false, '/^\d+(,\d+)*$/');
|
||||
$collection = explode(',', $_POST['element_ids']);
|
||||
|
||||
$datas = array();
|
||||
|
||||
Reference in New Issue
Block a user