[VD:abstract] mimetype() file check only of elFinderVolumeLocalFileSystem instance

This commit is contained in:
nao-pon
2020-03-05 11:04:30 +09:00
parent e319b86c19
commit d122437701
+4 -1
View File
@@ -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) {