mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Fix sql injection when forging requests with IN
This commit is contained in:
@@ -95,7 +95,7 @@ function getEntity($element, $shared = 1, $currentobject = null)
|
||||
$out = '';
|
||||
$addzero = array('user', 'usergroup', 'c_email_templates', 'email_template', 'default_values');
|
||||
if (in_array($element, $addzero)) $out .= '0,';
|
||||
$out .= $conf->entity;
|
||||
$out .= ((int) $conf->entity);
|
||||
return $out;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user