mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:LocalFileSystem] do not measure image size for empty image files in _dimensions()
This commit is contained in:
@@ -705,7 +705,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver
|
||||
protected function _dimensions($path, $mime)
|
||||
{
|
||||
clearstatcache();
|
||||
return strpos($mime, 'image') === 0 && is_readable($path) && ($s = getimagesize($path)) !== false
|
||||
return strpos($mime, 'image') === 0 && is_readable($path) && filesize($path) && ($s = getimagesize($path)) !== false
|
||||
? $s[0] . 'x' . $s[1]
|
||||
: false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user