summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-05-06 11:11:27 -0400
committerjim-p <jim@pingle.org>2010-05-06 11:11:27 -0400
commite77ea573bea27d85fe6a1d8b375d208492346c18 (patch)
treef1794f5ea559976659d7d0424acd21a19bc17379 /usr/local/www/diag_backup.php
parent1b8b44dc661b45ea2752467a2c57433be69c051b (diff)
downloadpfsense-e77ea573bea27d85fe6a1d8b375d208492346c18.zip
pfsense-e77ea573bea27d85fe6a1d8b375d208492346c18.tar.gz
Fix config backup download on IE8+HTTPS. Reported-By: Seth on the Dev list
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 1ff119e..ffac280 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -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;
OpenPOWER on IntegriCloud