From: Christian Weiske Date: Tue, 12 Nov 2013 17:27:30 +0000 (+0100) Subject: lowercase file extension before using it for type detection X-Git-Tag: v0.4.0~74 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/ec4492e355c665b0148ddfce1982e946565b8447 lowercase file extension before using it for type detection --- diff --git a/src/phorkie/File.php b/src/phorkie/File.php index dc90d9b..2aa1d19 100644 --- a/src/phorkie/File.php +++ b/src/phorkie/File.php @@ -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()