Issue Bug Closed

#71348TypoScript is cut off under some circumstances

Alexander Grein 11/05/15, 13:52 updated 01/21/16, 08:57

Description

Under some circumstances TypoScript code is cut off at the end, which could result into a fail of the hole rendering.

TypoScript code added by using ExtensionManagementUtility::addTypoScript(), will be added to $GLOBALS[‘TYPO3_CONF_VARS’][‘FE’][‘defaultTypoScript_’ . $type . ‘.’][‘defaultContentRendering’] (line 1478 of code)

This TypoScript code will be read out from this array var inside “TyposcriptParser::checkIncludeLines()” in line 834

The fatal problem is in line 841:

$string = substr($newString, 1, -1);

Because of this, the last and first sign of every TypoScript code block is deleted, independent wether there is a relevant code like a closing “}” or just a line break.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.