]> source.dussan.org Git - nextcloud-server.git/commitdiff
make media detection based on extention case insensitive
authorRobin Appelman <icewind@owncloud.com>
Fri, 20 Jan 2012 18:34:34 +0000 (19:34 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 20 Jan 2012 18:34:34 +0000 (19:34 +0100)
apps/media/lib_scanner.php

index 4039cce09ee60b8767ec1d3b7272129b78db2f49..8b659c73b6ea1b4c0131e07ff300bf64785aec6e 100644 (file)
@@ -140,7 +140,7 @@ class OC_MEDIA_SCANNER{
         * @return bool
         */
        public static function isMusic($filename){
-               $ext=substr($filename,strrpos($filename,'.')+1);
+               $ext=strtolower(substr($filename,strrpos($filename,'.')+1));
                return $ext=='mp3' || $ext=='flac' || $ext=='m4a' || $ext=='ogg' || $ext=='oga';
        }
 }