Fix sql injection
This commit is contained in:
parent
20a3a429ed
commit
762de973eb
@ -289,7 +289,7 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($dbt_select != 'rowid' && $dbt_select != 'id') {
|
if ($dbt_select != 'rowid' && $dbt_select != 'id') {
|
||||||
$objectid = "'".$objectid."'";
|
$objectid = "'".$db->escape($objectid)."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Features/modules to check
|
// Features/modules to check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user