Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-28 10:29:40 +0300
committerGitHub <noreply@github.com>2021-10-28 10:29:40 +0300
commit2835f62410e8661b0e547037ee24c72a265806eb (patch)
treed22e50bbfc8ca1abe3e7f0c5bff119f7604ec7ec /apps
parenta463d51bf456076a76434a0fe9c3d79c3cce4929 (diff)
parentc363479279d0d7d026b95559abf8c72fd46c975e (diff)
Merge pull request #29457 from nextcloud/backport/29454/stable20
Diffstat (limited to 'apps')
-rw-r--r--apps/workflowengine/lib/Check/FileMimeType.php2
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);