Project

General

Profile

Actions

Bug #17109

closed

images with uppercase file extension aren't displayed in drag-n-drop listing

Added by alexander onea about 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-03-11
Due date:
% Done:

0%

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

Description

images in drag-n-drop listing are not displayed whenever the file extension is not lowercase.

example:
/folder/
a.gif
b.png
c.jpg
d.GIF <<-- won't be displayed in the RTE drag-n-drop listing.

it boils down to a bug in class.browse_links.php, where t3lib_div::inList('gif,jpeg,jpg,png',$fI['extension'])) is called without strtolower() on the file extension.

solution is simple: use strtolower when checking whether the file extension is in the list.

(issue imported from #M5189)


Files

browse_links.php.diff (684 Bytes) browse_links.php.diff Administrator Admin, 2007-03-11 13:30
bug_5189.diff (533 Bytes) bug_5189.diff Administrator Admin, 2007-03-11 20:55
Actions #1

Updated by Michael Stucki about 17 years ago

Please attach a diff in the "unified" format. See http://typo3.org/teams/bug-fixing/diff-and-patch/

Actions #2

Updated by alexander onea about 17 years ago

added diff in unified format

Actions #3

Updated by Martin Kutschker over 16 years ago

Fixed in SVN (trunk and 4.1)

Actions

Also available in: Atom PDF