Commit ce6296b9 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Change existing image/pjpeg mimetypes to image/jpeg

parent b1267b06
......@@ -205,6 +205,16 @@ function xmldb_artefact_file_upgrade($oldversion=0) {
PluginArtefactFile::resync_filetype_list();
}
if ($oldversion < 2009021301) {
// IE has been uploading jpegs with the image/pjpeg mimetype,
// which is not recognised as an image by the download script.
// Fix all existing jpegs in the db:
set_field('artefact_file_files', 'filetype', 'image/jpeg', 'filetype', 'image/pjpeg');
// This won't happen again because we now read the contents of the
// uploaded file to detect image artefacts, and overwrite the mime
// type declared by the browser if we see an image.
}
return $status;
}
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2009021300;
$config->version = 2009021301;
$config->release = '0.4.3';
?>
Supports Markdown
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