diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-10-29 13:29:35 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-10-29 13:29:35 +0100 |
commit | 68d13210bdfa4362b984a83795498ff2c764a52b (patch) | |
tree | 1eecc530e9662cb7b0b1d7bcd39e72ebda8a6f21 | |
parent | a04a01d51f6d9dc9ebc346676048e5988ea1beac (diff) | |
download | nextcloud-server-68d13210bdfa4362b984a83795498ff2c764a52b.tar.gz nextcloud-server-68d13210bdfa4362b984a83795498ff2c764a52b.zip |
Reset mimetype to application/octet-stream on empty reply from file command.
-rw-r--r-- | lib/private/files/type/detection.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/type/detection.php b/lib/private/files/type/detection.php index d8a83382822..e84c63875c9 100644 --- a/lib/private/files/type/detection.php +++ b/lib/private/files/type/detection.php @@ -93,6 +93,10 @@ class Detection { //trim the newline $mimeType = trim($reply); + if (empty($mimeType)) { + $mimeType = 'application/octet-stream'; + } + } return $mimeType; } |