Upgrade to the 3.8.0 patch

This commit is contained in:
Bastian Allgeier
2022-10-06 11:07:18 +02:00
parent 8c684581df
commit 94b2a32baf

View File

@@ -350,7 +350,7 @@ return function (App $app) {
* @param string $context Location of output (`html`, `attr`, `js`, `css`, `url` or `xml`) * @param string $context Location of output (`html`, `attr`, `js`, `css`, `url` or `xml`)
*/ */
'escape' => function (Field $field, string $context = 'html') { 'escape' => function (Field $field, string $context = 'html') {
$field->value = Str::esc($field->value, $context); $field->value = Str::esc($field->value ?? '', $context);
return $field; return $field;
}, },