Project

General

Profile

Actions

Bug #22979

closed

Filelist module reports "type" of files also for directories

Added by Stefano Cecere over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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

t3lib_div_split_fileref.patch (525 Bytes) t3lib_div_split_fileref.patch Administrator Admin, 2010-06-24 11:48
bug_14845.diff (2.26 KB) bug_14845.diff Administrator Admin, 2010-06-25 09:44
Actions #1

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.

Actions #2

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 #3

Updated by Susanne Moog over 14 years ago

rev 8123

Actions #4

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF