mirror of
https://github.com/getgrav/grav.git
synced 2026-03-01 18:11:25 +01:00
Turn off xss detection on unset fields
This commit is contained in:
@@ -104,7 +104,8 @@ class Validation
|
||||
{
|
||||
$messages = [];
|
||||
|
||||
if (!($field['check_xss'] ?? true)) {
|
||||
$type = $field['validate']['type'] ?? $field['type'] ?? 'text';
|
||||
if ($type === 'unset' || !($field['check_xss'] ?? true)) {
|
||||
return $messages;
|
||||
}
|
||||
$name = ucfirst($field['label'] ?? $field['name'] ?? 'UNKNOWN');
|
||||
|
||||
Reference in New Issue
Block a user