]> BookStack Code Mirror - bookstack/commit
Altered the parsing of custom head to prevent htmlentities on content
authorDan Brown <redacted>
Sun, 12 Sep 2021 15:19:17 +0000 (16:19 +0100)
committerDan Brown <redacted>
Sun, 12 Sep 2021 15:19:17 +0000 (16:19 +0100)
commitef459ca4c45bd2450ecd5d67a4d73c07f836ab25
tree5475b8339e40e350b54665ea19f1d2db0c9b2f18
parentfb80bb5d585868683ef336ad02a808453717113f
Altered the parsing of custom head to prevent htmlentities on content

Was causing things like emjoi within script content to be somewhat
mangled. Instead we force UTF8 only parsing via XML declaration.

Added test to cover.

For #2923
app/Util/CspService.php
app/Util/HtmlNonceApplicator.php
tests/Settings/CustomHeadContentTest.php