Project

General

Profile

Actions

Bug #81709

closed

Multiple INCLUDE_TYPOSCRIPT extensions with spaces not working

Added by Mathias Brodala almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2017-06-27
Due date:
% Done:

100%

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

Description

The following TypoScript snippet won't include files with anything but the first file extension:

<INCLUDE_TYPOSCRIPT: source="DIR: ./Library" extensions="ts, setupts, tx">

The reason is the space after the comma which in the end lets TypoScriptParser::includeDirectory() (more specifically GeneralUtility::getFilesInDir() handle them as "ts", " setupts" and " tx" (mind the leading space).

This should probably cleaned up with GeneralUtility::trimExplode().

Actions

Also available in: Atom PDF