diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-28 10:29:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 10:29:40 +0300 |
commit | 2835f62410e8661b0e547037ee24c72a265806eb (patch) | |
tree | d22e50bbfc8ca1abe3e7f0c5bff119f7604ec7ec /apps | |
parent | a463d51bf456076a76434a0fe9c3d79c3cce4929 (diff) | |
parent | c363479279d0d7d026b95559abf8c72fd46c975e (diff) |
Merge pull request #29457 from nextcloud/backport/29454/stable20
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/lib/Check/FileMimeType.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php index 8d9e2468ebd..1beb87d7a15 100644 --- a/apps/workflowengine/lib/Check/FileMimeType.php +++ b/apps/workflowengine/lib/Check/FileMimeType.php @@ -122,7 +122,7 @@ class FileMimeType extends AbstractStringCheck implements IFileCheck { return $this->cacheAndReturnMimeType($this->storage->getId(), $this->path, 'httpd/unix-directory'); } - if ($this->storage->file_exists($this->path)) { + if ($this->storage->file_exists($this->path) && $this->storage->filesize($this->path)) { $path = $this->storage->getLocalFile($this->path); $mimeType = $this->mimeTypeDetector->detectContent($path); return $this->cacheAndReturnMimeType($this->storage->getId(), $this->path, $mimeType); |