From 2d855c222a2b6ce90714be9e62ffc52632ebe488 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Mon, 1 Mar 2010 01:55:23 +0100 Subject: Fixed some file detection --- includes/inc_files.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/inc_files.php b/includes/inc_files.php index c6374d8..60bc4f2 100755 --- a/includes/inc_files.php +++ b/includes/inc_files.php @@ -93,7 +93,9 @@ function mediagettype($file) if (is_dir($file)) return 3; - if (preg_match("/" .$fileext ." /", $videotypes)) + else if (preg_match("$/$", $fileext)) + return 0; + else if (preg_match("/" .$fileext ." /", $videotypes)) return 1; else if (preg_match("/" .$fileext ." /", $audiotypes)) return 2; -- cgit v1.2.3