Fix config backup download on IE8+HTTPS. Reported-By: Seth on the Dev list

This commit is contained in:
jim-p 2010-05-06 11:11:27 -04:00
parent 1b8b44dc66
commit e77ea573be

View File

@ -242,6 +242,13 @@ if ($_POST) {
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$name}");
header("Content-Length: $size");
if (isset($_SERVER['HTTPS'])) {
header('Pragma: ');
header('Cache-Control: ');
} else {
header("Pragma: private");
header("Cache-Control: private, must-revalidate");
}
echo $data;
exit;