Fixed bug #5189: images with uppercase file extension aren't displayed in drag-n...
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 6 Oct 2007 22:00:28 +0000 (22:00 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Sat, 6 Oct 2007 22:00:28 +0000 (22:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2536 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.browse_links.php

index 9722556..8ff2841 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 
        * Fixed bug #6462: Wrong default locale charset on Windows
        * Fixed bug #6252: rteHTMLarea acronyms are not DBAL compatible
+       * Fixed bug #5189: images with uppercase file extension aren't displayed in drag-n-drop listing
 
 2007-09-24 Andreas Otto <andreas.otto@dkd.de>
 
index 3c879dd..bd2f093 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2007 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -2010,7 +2010,7 @@ class browse_links {
                                                $iurl = $this->siteURL.t3lib_div::rawurlencodeFP(substr($filepath,strlen(PATH_site)));
 
                                                        // Show only web-images
-                                               if (t3lib_div::inList('gif,jpeg,jpg,png',$fI['extension']))     {
+                                               if (t3lib_div::inList('gif,jpeg,jpg,png',strtolower($fI['extension']))) {
                                                        $imgInfo = @getimagesize($filepath);
                                                        $pDim = $imgInfo[0].'x'.$imgInfo[1].' pixels';
 
@@ -2347,4 +2347,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class
 }
 
 
-?>
\ No newline at end of file
+?>