mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:abstract] mimetype() file check only of elFinderVolumeLocalFileSystem instance
This commit is contained in:
@@ -4784,8 +4784,11 @@ abstract class elFinderVolumeDriver
|
||||
$name = $path;
|
||||
$nameCheck = true;
|
||||
}
|
||||
if (!$this instanceof elFinderVolumeLocalFileSystem) {
|
||||
$nameCheck = true;
|
||||
}
|
||||
$ext = (false === $pos = strrpos($name, '.')) ? '' : strtolower(substr($name, $pos + 1));
|
||||
if ($size === null) {
|
||||
if (!$nameCheck && $size === null) {
|
||||
$size = file_exists($path) ? filesize($path) : -1;
|
||||
}
|
||||
if (!$nameCheck && is_readable($path) && $size > 0) {
|
||||
|
||||
Reference in New Issue
Block a user