Project

General

Profile

Actions

Bug #21714

closed

t3lib_TStemplate::getFileName() handles path starting with media/ as magic

Added by Jigal van Hemert almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-11-27
Due date:
% Done:

0%

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

Description

The function t3lib_TStemplate::getFileName() considers any path starting with 'media/' like it is a shortcut to 'typo3/sysext/cms/tslib/media/' (which was the case in older TYPO3 installations).

If a directory 'media' exists the files inside this directory cannot be used in Typoscript FILE objects, etc.
The check if the file exists should be performed first and if that fails the path can be adjusted if it starts with 'media/'

(issue imported from #M12794)


Files

12794.patch (927 Bytes) 12794.patch Administrator Admin, 2009-12-24 16:59
Actions

Also available in: Atom PDF