2
0
forked from Wavyzz/dolibarr

FIX filter on categories

This commit is contained in:
Laurent Destailleur
2022-10-11 03:01:09 +02:00
parent 92d0dff65d
commit f516a4b052
9 changed files with 1196 additions and 1112 deletions

View File

@@ -967,7 +967,10 @@ function sanitizeVal($out = '', $check = 'alphanohtml', $filter = null, $options
break;
case 'custom':
if (empty($filter)) {
return 'BadFourthParameterForGETPOST';
return 'BadParameterForGETPOST - Param 3 of sanitizeVal()';
}
if (empty($options)) {
return 'BadParameterForGETPOST - Param 4 of sanitizeVal()';
}
$out = filter_var($out, $filter, $options);
break;