Skip to content

Commit

Permalink
Merge pull request #3455 from justcarakas/charset-lowercase-spoon-lib…
Browse files Browse the repository at this point in the history
…rary

SpoonLibrary expects the charset to be in lowercase, otherwise some xss protections fail
  • Loading branch information
carakas committed Sep 1, 2021
2 parents 2a9c05a + c213063 commit 76bf739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Kernel.php
Expand Up @@ -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*().
Expand Down

0 comments on commit 76bf739

Please sign in to comment.