Merge pull request #22655 from hregis/fix_avoid_access_forbidden_with_numeric_ref
FIX avoid access forbidden with numeric ref
This commit is contained in:
commit
937840dbfe
@ -289,6 +289,11 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// To avoid access forbidden with numeric ref
|
||||||
|
if ($dbt_select != 'rowid' && $dbt_select != 'id') {
|
||||||
|
$objectid = "'".$objectid."'";
|
||||||
|
}
|
||||||
|
|
||||||
// Features/modules to check
|
// Features/modules to check
|
||||||
$featuresarray = array($features);
|
$featuresarray = array($features);
|
||||||
if (preg_match('/&/', $features)) {
|
if (preg_match('/&/', $features)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user