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
4629f23d
Commit
4629f23d
authored
Jun 12, 2009
by
Richard Mansfield
Browse files
Don't force-download all non-image files in IE (bug 3301)
parent
fe7e75a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/file.php
View file @
4629f23d
...
...
@@ -79,7 +79,7 @@ function serve_file($path, $filename, $mimetype, $options=array()) {
$mimetype
=
'application/octet-stream'
;
}
if
(
!
$mimetype
||
(
!
is_image_mime_type
(
$mimetype
)
&&
(
isset
(
$_SERVER
[
'HTTP_USER_AGENT'
])
&&
false
!==
strpos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'MSIE'
)))
)
{
if
(
!
$mimetype
)
{
$mimetype
=
'application/forcedownload'
;
}
...
...
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