From 94b2a32bafa5c29cf238cc6da918d637fee1b2c6 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Thu, 6 Oct 2022 11:07:18 +0200 Subject: [PATCH] Upgrade to the 3.8.0 patch --- kirby/config/methods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kirby/config/methods.php b/kirby/config/methods.php index c1b997e..ab63592 100644 --- a/kirby/config/methods.php +++ b/kirby/config/methods.php @@ -350,7 +350,7 @@ return function (App $app) { * @param string $context Location of output (`html`, `attr`, `js`, `css`, `url` or `xml`) */ 'escape' => function (Field $field, string $context = 'html') { - $field->value = Str::esc($field->value, $context); + $field->value = Str::esc($field->value ?? '', $context); return $field; },