Fix sql injection

This commit is contained in:
Laurent Destailleur 2022-03-01 18:43:16 +01:00
parent 20a3a429ed
commit 762de973eb

View File

@ -289,7 +289,7 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
}
if ($dbt_select != 'rowid' && $dbt_select != 'id') {
$objectid = "'".$objectid."'";
$objectid = "'".$db->escape($objectid)."'";
}
// Features/modules to check