Actions
Bug #22979
closedFilelist module reports "type" of files also for directories
Start date:
2010-06-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
if a directory is called "mydir.com"
the type column shows COM as its file type!
it should show nothing
(issue imported from #M14845)
Files
Updated by Caspar Stuebs over 14 years ago
The function which is looking for the file extension is t3lib_div::split_fileref().
Within this function there has to be a check, if the given $fileref is really a file.
See patch.
Updated by Andy Grunwald over 14 years ago
Hey,
i can reproduce this bug.
The attached patch "t3lib_div_split_fileref.patch" is working as well.
I`ve modified this patch and created a unit test to avaoid this bug.
The new version "bug_14845.diff" is attached, too.
I`ve posted this bug on the maillinglist.
Actions