lowercase file extension before using it for type detection
authorChristian Weiske <cweiske@cweiske.de>
Tue, 12 Nov 2013 17:27:30 +0000 (18:27 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 12 Nov 2013 17:27:30 +0000 (18:27 +0100)
src/phorkie/File.php

index dc90d9b..2aa1d19 100644 (file)
@@ -55,7 +55,7 @@ class File
      */
     public function getExt()
     {
-        return substr($this->path, strrpos($this->path, '.') + 1);
+        return strtolower(substr($this->path, strrpos($this->path, '.') + 1));
     }
 
     public function getContent()