Skip to content

Commit d1c07c6

Browse files
committed
fix: Avoid failing with duplicate checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 710c593 commit d1c07c6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apps/workflowengine/lib/Check/FileMimeType.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,7 @@ protected function cacheAndReturnMimeType(string $storageId, ?string $path, stri
107107
* @return bool
108108
*/
109109
public function executeCheck($operator, $value) {
110-
$actualValue = $this->getActualValue();
111-
$plainMimetypeResult = $this->executeStringCheck($operator, $value, $actualValue);
112-
if ($actualValue === 'httpd/unix-directory') {
113-
return $plainMimetypeResult;
114-
}
115-
$detectMimetypeBasedOnFilenameResult = $this->executeStringCheck($operator, $value, $this->mimeTypeDetector->detectPath($this->path));
116-
return $plainMimetypeResult || $detectMimetypeBasedOnFilenameResult;
110+
return $this->executeStringCheck($operator, $value, $this->getActualValue());
117111
}
118112

119113
/**

0 commit comments

Comments
 (0)