Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ce6296b9
Commit
ce6296b9
authored
Feb 13, 2009
by
Richard Mansfield
Browse files
Change existing image/pjpeg mimetypes to image/jpeg
parent
b1267b06
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/db/upgrade.php
View file @
ce6296b9
...
...
@@ -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
;
}
...
...
htdocs/artefact/file/version.php
View file @
ce6296b9
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
200902130
0
;
$config
->
version
=
200902130
1
;
$config
->
release
=
'0.4.3'
;
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment