Merge branch 'develop' into NEW_taskClose

This commit is contained in:
William Mead
2025-01-23 09:48:31 +01:00
18 changed files with 67 additions and 48 deletions

View File

@@ -1065,7 +1065,8 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
// Check type of variable and make sanitization according to this
if (preg_match('/^array/', $check)) { // If 'array' or 'array:restricthtml' or 'array:aZ09' or 'array:intcomma'
if (!is_array($out) || empty($out)) {
$out = array();
$out = explode(',', $out);
$tmpcheck = 'alphanohtml';
} else {
$tmparray = explode(':', $check);
if (!empty($tmparray[1])) {
@@ -1073,9 +1074,9 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
} else {
$tmpcheck = 'alphanohtml';
}
foreach ($out as $outkey => $outval) {
$out[$outkey] = sanitizeVal($outval, $tmpcheck, $filter, $options);
}
}
foreach ($out as $outkey => $outval) {
$out[$outkey] = sanitizeVal($outval, $tmpcheck, $filter, $options);
}
} else {
// If field name is 'search_xxx' then we force the add of space after each < and > (when following char is numeric) because it means