mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 20:07:36 +02:00
Filter unknown array fields as arrays, not text
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user