Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #19609 mime type detection by file extension failes with uppercase extensions
Submitted: 2012-09-20 21:08 UTC
From: mike_buergi Assigned: cweiske
Status: Closed Package: MIME_Type (version 1.3.1)
PHP Version: 5.3.3 OS: Debian Linux
Roadmaps: (Not assigned)    
Subscription  


 [2012-09-20 21:08 UTC] mike_buergi (Michael Bürgi)
Description: ------------ The method getMIMEType() in the file Extension.php needs to convert the file's extension to lowercase letters prior to mapping it to the predefined mime types. Test script: --------------- line 256 needs to be: $extension = strtolower(substr(strrchr($file, '.'), 1));

Comments

 [2013-09-23 18:22 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Closed -Assigned To: +Assigned To: cweiske
Fixed in git. will be in 1.3.2