fixes #825, check user input on Batch Manager, unit mode, to prevent SQL injection

This commit is contained in:
plegall
2017-12-18 16:44:42 +01:00
parent 77f02bfd76
commit 9028c75c1f

View File

@@ -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();