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