Project

General

Profile

Actions

Bug #51781

closed

IMAGE content object accepts directories

Added by Alexander Stehlik over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2013-09-05
Due date:
% Done:

100%

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

Description

When the path of an image content element is the path to a dirctory and not to a real file it should not be rendered.

I think I found the problem in 6aad338a in \TYPO3\CMS\Core\TypoScript\TemplateService->getFileName().

See also:
https://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff/d0c8f2903eb639bc24154cfd716ff4760cb5a9aa..6aad338a:/t3lib/class.t3lib_tstemplate.php

parse_url() accepts the path to a directory (e.g. uploads/myextension/) so it will return the path unchanged, even if the file does not exist or is a directory. In the old version of the function it only returned a value if the provided file was a real file.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #62575: Broken unit test in 6.2ClosedMarkus Klein2014-10-30

Actions
Actions

Also available in: Atom PDF