From c21306344b4df8cd682087e85d525c49dcab55b7 Mon Sep 17 00:00:00 2001 From: Jelmer Prins Date: Tue, 31 Aug 2021 22:05:51 +0200 Subject: [PATCH] SpoonLibrary expects the charset to be in lowercase, otherwise some xss protections fail --- app/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Kernel.php b/app/Kernel.php index a9c88e0ecb..17df726190 100644 --- a/app/Kernel.php +++ b/app/Kernel.php @@ -80,7 +80,7 @@ public function defineForkConstants(): void Spoon::setDebug($container->getParameter('kernel.debug')); Spoon::setDebugEmail($container->getParameter('fork.debug_email')); Spoon::setDebugMessage($container->getParameter('fork.debug_message')); - Spoon::setCharset($container->getParameter('kernel.charset')); + Spoon::setCharset(strtolower($container->getParameter('kernel.charset'))); /** * @deprecated SPOON_* constants are deprecated in favour of Spoon::set*().