summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/inc_files.php4
1 files changed, 3 insertions, 1 deletions
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;