Sanitise filter[Id]

pull/4058/head
Isaac Connor 2024-05-30 09:52:35 -04:00
parent b51c5df0cb
commit f81d6fb823
1 changed files with 2 additions and 0 deletions

View File

@ -1006,6 +1006,8 @@ function parseFilter(&$filter, $saveToSession=false, $querySep='&') {
$Filter = ZM\Filter::parse($filter, $querySep);
if (isset($filter['Id']))
$filter['Id'] = validCardinal($filter['Id']);
$filter['sql'] = $Filter->sql();
$filter['querystring'] = $Filter->querystring('filter', $querySep);
$filter['hidden_fields'] = $Filter->hidden_fields();