diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-23 13:04:32 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-07-12 16:54:13 +0200 |
commit | 06d80ba809ebef1b7903d12843a0f7287963ca28 (patch) | |
tree | 020227dd5c20a012ef9dd7022ea57803f74de52d /apps/workflowengine/lib | |
parent | 706c141fffce928d344fe2f039da549fad065393 (diff) | |
download | nextcloud-server-06d80ba809ebef1b7903d12843a0f7287963ca28.tar.gz nextcloud-server-06d80ba809ebef1b7903d12843a0f7287963ca28.zip |
fix: Avoid failing with duplicate checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r-- | apps/workflowengine/lib/Check/FileMimeType.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php index 991d7ebc739..dfcfed9466b 100644 --- a/apps/workflowengine/lib/Check/FileMimeType.php +++ b/apps/workflowengine/lib/Check/FileMimeType.php @@ -107,13 +107,7 @@ class FileMimeType extends AbstractStringCheck implements IFileCheck { * @return bool */ public function executeCheck($operator, $value) { - $actualValue = $this->getActualValue(); - $plainMimetypeResult = $this->executeStringCheck($operator, $value, $actualValue); - if ($actualValue === 'httpd/unix-directory') { - return $plainMimetypeResult; - } - $detectMimetypeBasedOnFilenameResult = $this->executeStringCheck($operator, $value, $this->mimeTypeDetector->detectPath($this->path)); - return $plainMimetypeResult || $detectMimetypeBasedOnFilenameResult; + return $this->executeStringCheck($operator, $value, $this->getActualValue()); } /** |