Issue Bug Closed

#81709Multiple INCLUDE_TYPOSCRIPT extensions with spaces not working

Mathias Brodala 06/27/17, 12:18 updated 10/02/18, 10:58

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().

Reviews 2