Reset mimetype to application/octet-stream on empty reply from file command.

remotes/origin/stable6
Andreas Fischer 13 years ago
parent a04a01d51f
commit 68d13210bd
  1. 4
      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;
}

Loading…
Cancel
Save