]> source.dussan.org Git - nextcloud-server.git/commitdiff
Reset mimetype to application/octet-stream on empty reply from file command.
authorAndreas Fischer <bantu@owncloud.com>
Tue, 29 Oct 2013 12:29:35 +0000 (13:29 +0100)
committerAndreas Fischer <bantu@owncloud.com>
Tue, 29 Oct 2013 12:29:35 +0000 (13:29 +0100)
lib/private/files/type/detection.php

index d8a83382822915e3383e728f2921542f44371e30..e84c63875c9dd6c604f30c3f8d257cd43224bd9b 100644 (file)
@@ -93,6 +93,10 @@ class Detection {
                        //trim the newline
                        $mimeType = trim($reply);
 
+                       if (empty($mimeType)) {
+                               $mimeType = 'application/octet-stream';
+                       }
+
                }
                return $mimeType;
        }