mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix config backup download on IE8+HTTPS. Reported-By: Seth on the Dev list
This commit is contained in:
parent
1b8b44dc66
commit
e77ea573be
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user