Project

General

Profile

Actions

Bug #57914

closed

INCLUDE_TYPOSCRIPT should skip hidden/temporary files

Added by Stefan Neufeind about 10 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2014-04-14
Due date:
% Done:

0%

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

Description

INCLUDE_TYPOSCRIPT is processed in typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
When including a whole DIR it can occur that also files like ".myfile.ts.swp" are included. Those file are for example there while a file is open in vim. In BE the object-browser then complains about unexpected characters etc.

a) We should skip those hidden/temporary files. (Afaik there is a pattern for temporary files that we can use for the exclude.)
b) Why does it include a file ending with .swp? That file-extension should usually not be allowed to include.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #34621: Allow <INCLUDE_TYPOSCRIPT to include directories (recursive)ClosedLoek Hilgersom2012-03-07

Actions
Has duplicate TYPO3 Core - Bug #60681: <INCLUDE_TYPOSCRIPT: source="DIR:EXT:mysite/Typoscript"> includes hidden files…Closed2014-07-30

Actions
Actions #1

Updated by Markus Klein about 10 years ago

Did you specify the extension parameter with the include?

Actions #2

Updated by Stefan Neufeind about 10 years ago

no I didn't. Just a plain include for a DIR with everything that it contains.

Actions #3

Updated by Stefan Neufeind almost 10 years ago

Well, but we have a whitelist of allowed extensions. For example the editor does not allow you to save typoscript-files which end with .php. So we could use that whitelist as a default for the extension-parameter you mentioned.

Actions #4

Updated by Stefan Neufeind almost 10 years ago

  • Status changed from New to Under Review
Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31694

Actions #6

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31694

Actions #7

Updated by zimmer7 UG (haftungsbeschränkt) over 9 years ago

So, no progress here? What about patchset 4?

Actions #8

Updated by Gerrit Code Review over 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31694

Actions #9

Updated by Gerrit Code Review almost 9 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31694

Actions #10

Updated by Christian Kuhn about 8 years ago

  • Status changed from Under Review to Rejected

patch wasn't finished for a long time.

Actions

Also available in: Atom PDF