From a831e7969d3a4595d7de39bc0796add131425ee4 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 25 Mar 2020 19:41:51 +0100 Subject: Rev: 4638 --- mayor-orig/mayor-base/www/include/share/net/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mayor-orig/mayor-base/www/include/share') diff --git a/mayor-orig/mayor-base/www/include/share/net/upload.php b/mayor-orig/mayor-base/www/include/share/net/upload.php index 7181c94e..d58708ed 100644 --- a/mayor-orig/mayor-base/www/include/share/net/upload.php +++ b/mayor-orig/mayor-base/www/include/share/net/upload.php @@ -99,7 +99,7 @@ function filename2ext($filename) { $ext = substr(strrchr($filename, '.'), 1); $ext = substr($filename, strrpos($filename, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $filename); - $exts = split("[/\\.]", $filename); + $exts = explode('.', $filename); $n = count($exts)-1; $ext = $exts[$n]; return $ext; -- cgit v1.2.3