Filter unknown array fields as arrays, not text

This commit is contained in:
Matias Griese
2019-01-16 10:45:19 +02:00
parent 2e277f3cb3
commit f04ae315e4

View File

@@ -111,7 +111,7 @@ class Validation
}
if (!method_exists(__CLASS__, $method)) {
$method = 'filterText';
$method = isset($field['array']) && $field['array'] === true ? 'filterArray' : 'filterText';
}
return self::$method($value, $validate, $field);