]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly detect the mimetype from uploads 17297/head
authorJoas Schilling <coding@schilljs.com>
Thu, 26 Sep 2019 15:43:47 +0000 (17:43 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Fri, 27 Sep 2019 08:53:26 +0000 (08:53 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/workflowengine/lib/Check/FileMimeType.php

index 5f572f5aa9d840fb5234d6983f5cac58a1c6ffff..4dda26c7459459ad828cbc9232eaa3b052ac80b0 100644 (file)
@@ -113,7 +113,7 @@ class FileMimeType extends AbstractStringCheck {
                        $files = $this->request->getUploadedFile('files');
                        if (isset($files['type'][0])) {
                                $mimeType = $files['type'][0];
-                               if ($this->mimeType === 'application/octet-stream') {
+                               if ($mimeType === 'application/octet-stream') {
                                        // Maybe not...
                                        $mimeTypeTest = $this->mimeTypeDetector->detectPath($files['name'][0]);
                                        if ($mimeTypeTest !== 'application/octet-stream' && $mimeTypeTest !== false) {