summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-01 01:55:23 +0100
committerTheTroll <trolldev@gmail.com>2010-03-01 01:55:23 +0100
commit2d855c222a2b6ce90714be9e62ffc52632ebe488 (patch)
tree7bdbc02225ae9c2c5b6648d09cac07c87ee628be
parentebffb8ee2d1b8bcf72c6baa743b447007a6c7169 (diff)
downloadistreamdev-2d855c222a2b6ce90714be9e62ffc52632ebe488.tar.gz
istreamdev-2d855c222a2b6ce90714be9e62ffc52632ebe488.tar.bz2
Fixed some file detection
-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;