Issue Bug Closed

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

alexander onea 03/11/07, 13:30 updated 06/27/08, 10:53

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.