Project

General

Profile

Actions

Bug #71348

closed

TypoScript is cut off under some circumstances

Added by Alexander Grein about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Start date:
2015-11-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF