[BUGFIX] Remove Byte Order Mark from TypoScript includes 15/57315/5
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 22 Jun 2018 20:52:13 +0000 (22:52 +0200)
committerMathias Brodala <mbrodala@pagemachine.de>
Fri, 22 Jun 2018 22:22:15 +0000 (00:22 +0200)
commit73ffa61fc9974a14d44901cce801b7fffcd0f7b6
treeacba0cb3ab6fa18794d0b76f0eda9c03918abb66
parent6df81c3af7043ac42576e4f43bd0c3acdb2a6024
[BUGFIX] Remove Byte Order Mark from TypoScript includes

If TypoScript files have a Byte Order Mark (BOM) set, the TypoScript
parser may fail as the invisible characters disturb the parsing process.

The BOM gets removed from the TypoScript strings with this patch.

Resolves: #56483
Releases: master, 8.7
Change-Id: I59318f9d2d92efb224d62906fb404fcb41459f8f
Reviewed-on: https://review.typo3.org/57315
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
typo3/sysext/core/Classes/Utility/StringUtility.php
typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php