FIX avoid access forbidden with numeric ref

This commit is contained in:
Regis Houssin
2022-10-22 09:22:12 +02:00
parent 89261d51e3
commit 2bf2faef72

View File

@@ -289,6 +289,11 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
return 1;
}
// To avoid access forbidden with numeric ref
if ($dbt_select != 'rowid' && $dbt_select != 'id') {
$objectid = "'".$objectid."'";
}
// Features/modules to check
$featuresarray = array($features);
if (preg_match('/&/', $features)) {