Commit 4a73dc7f authored by Nigel McNie's avatar Nigel McNie

Allow files that 'file' identifies as an empty file through.

parent 0819608a
......@@ -91,7 +91,7 @@ class upload_manager {
require_once('file.php');
$type = get_mime_type($file['tmp_name']);
if ($type) {
if (substr($type, 0, 5) != 'text/') {
if ($type != 'application/x-empty' && substr($type, 0, 5) != 'text/') {
$validtypes = get_column_sql('SELECT mimetype
FROM {artefact_file_mime_types} m
LEFT JOIN {artefact_file_file_types} f ON (m.description = f.description)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment