M3 Security Fixes for Pass 40

This commit is contained in:
Mark Gregory
2026-09-17 13:22:35 +01:00
parent 34c3460760
commit a9b63e43b3
28 changed files with 80 additions and 116 deletions
-18
View File
@@ -251,24 +251,6 @@ class Helper
public static function checkLength($jsonFields, $dbFields, $type)
{
// Check type
$jSONType = gettype($jsonFields);
switch ($jSONType) {
case 'string':
$jSONTypeConv = 'string';
break;
case 'double':
$jSONTypeConv = 'number';
break;
case 'integer':
$jSONTypeConv = 'number';
break;
default:
$jSONTypeConv = 'null';
break;
}
$type = $type == 'integer' || $type == 'DEC' ? 'number' : $type;
// Check Json Field should be < DB Field