Commit 4629f23d authored by Richard Mansfield's avatar Richard Mansfield

Don't force-download all non-image files in IE (bug 3301)

parent fe7e75a2
......@@ -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';
}
......
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