summaryrefslogtreecommitdiffstats
path: root/apps/media
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-20 19:34:34 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-20 19:34:34 +0100
commit97901391f473fdb546cce5294530a307bb1d803c (patch)
tree76a84663be8917bffbde2ea847b4e4a5078598d6 /apps/media
parent415e968612aef71dabaa8934117c72090a3fce2d (diff)
downloadnextcloud-server-97901391f473fdb546cce5294530a307bb1d803c.tar.gz
nextcloud-server-97901391f473fdb546cce5294530a307bb1d803c.zip
make media detection based on extention case insensitive
Diffstat (limited to 'apps/media')
-rw-r--r--apps/media/lib_scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_scanner.php b/apps/media/lib_scanner.php
index 4039cce09ee..8b659c73b6e 100644
--- a/apps/media/lib_scanner.php
+++ b/apps/media/lib_scanner.php
@@ -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';
}
}