Project

General

Profile

Actions

Bug #62280

closed

css_styled_content include via INCLUDE_TYPOSCRIPT still not working correctly (removes closing bracket "}")

Added by Andreas Allacher about 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-16
Due date:
% Done:

100%

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

Description

With https://forge.typo3.org/issues/49461
support was added to allow css_styled_content to be loaded via INCLUDE_TYPOSCRIPT.
However, that is still buggy.

see code:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php#l808

The problem is the soon following

// Not the first/last linebreak char.
$string = substr($newString, 1, -1);

Because TYPO3\CMS\Extbase\Utility\ExtensionUtility->configurePlugin does not add a linebreak add the end this causes the closing "}" to be removed which is a problem if TypoScript comes afterwards.

Actions

Also available in: Atom PDF