[BUGFIX] Remove Byte Order Mark from TypoScript includes 27/57327/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 22 Jun 2018 20:52:13 +0000 (22:52 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 22 Jun 2018 23:17:57 +0000 (01:17 +0200)
commit92ee4e4f4e34a06b0650439358991e0f3e526407
treee12361222512ddb93d97c6977bf78c277b61355e
parent6f0ba6f0a2d258b8957ea2201a5f954c520a12f9
[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/57327
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
typo3/sysext/core/Classes/Utility/StringUtility.php
typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php