From: Martin Kutschker Date: Sat, 6 Oct 2007 22:08:18 +0000 (+0000) Subject: Fixed bug #5189: images with uppercase file extension aren't displayed in drag-n... X-Git-Tag: TYPO3_4-2-0alpha2~149 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/7cea94c8edbe92d117fdcc08a3a958caf6abc6ae?ds=sidebyside Fixed bug #5189: images with uppercase file extension aren't displayed in drag-n-drop listing git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2537 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 3b219af6e732..ae450837db87 100755 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * Fixed bug #6462: Wrong default locale charset on Windows * Fixed bug #6032: Freeing SQL result sets * 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-10-01 Bernhard Kraft diff --git a/typo3/class.browse_links.php b/typo3/class.browse_links.php index e2c86d54b4e6..3734d3d311b7 100755 --- a/typo3/class.browse_links.php +++ b/typo3/class.browse_links.php @@ -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 @@ -2026,13 +2026,13 @@ class browse_links { // Fraverse files: while(list(,$filepath)=each($files)) { - $fI=pathinfo($filepath); + $fI = pathinfo($filepath); // URL of image: $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'; @@ -2392,4 +2392,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class } -?> \ No newline at end of file +?>