summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-04-27 17:43:02 -0400
committerjim-p <jim@pingle.org>2010-04-27 17:43:32 -0400
commit2d181b70511dbd72d2692f90853f5bc9558b05d0 (patch)
tree3c598f125e34ea912d39ea2bad1dd6b6f3acd4ff
parentfa4a331fa5660c8d817ca8708696e0478fbb675a (diff)
downloadpfsense-2d181b70511dbd72d2692f90853f5bc9558b05d0.zip
pfsense-2d181b70511dbd72d2692f90853f5bc9558b05d0.tar.gz
Fix IE downloading with HTTPS
-rwxr-xr-xusr/local/www/exec.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php
index 957c91c..37a5464 100755
--- a/usr/local/www/exec.php
+++ b/usr/local/www/exec.php
@@ -47,8 +47,13 @@ if (($_POST['submit'] == "Download") && file_exists($_POST['dlPath'])) {
header("Content-Length: " . filesize($_POST['dlPath']));
header("Content-Disposition: attachment; filename=\"" .
trim(htmlentities(basename($_POST['dlPath']))) . "\"");
- header("Pragma: private");
- header("Cache-Control: private, must-revalidate");
+ if (isset($_SERVER['HTTPS'])) {
+ header('Pragma: ');
+ header('Cache-Control: ');
+ } else {
+ header("Pragma: private");
+ header("Cache-Control: private, must-revalidate");
+ }
fpassthru($fd);
exit;
OpenPOWER on IntegriCloud