fixed IE downloading bug with SSL
This commit is contained in:
@@ -139,11 +139,17 @@ else {
|
||||
|
||||
// Send headers
|
||||
header('Content-Type: ' . $mime_type);
|
||||
// lem9: we need "inline" instead of "attachment" for IE 5.5
|
||||
$content_disp = (USR_BROWSER_AGENT == 'IE') ? 'inline' : 'attachment';
|
||||
header('Content-Disposition: ' . $content_disp . '; filename="' . $filename . '.' . $ext . '"');
|
||||
header('Pragma: no-cache');
|
||||
header('Expires: 0');
|
||||
// lem9 & loic1: IE need specific headers
|
||||
if (USR_BROWSER_AGENT == 'IE') {
|
||||
header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
header('Pragma: public');
|
||||
} else {
|
||||
header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"');
|
||||
header('Expires: 0');
|
||||
header('Pragma: no-cache');
|
||||
}
|
||||
} // end download
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user