aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-04-27 17:38:02 -0400
committerjim-p <jim@pingle.org>2010-04-27 17:38:02 -0400
commit883feaf113a72b2c940be0012d2df1b4abc0c293 (patch)
tree642e7a4c188b920d106d565512b163dd951a5558 /config/openvpn-client-export
parent6e56e6c73740fe51f80b48a98d406adfe2b577f0 (diff)
downloadpfsense-packages-883feaf113a72b2c940be0012d2df1b4abc0c293.tar.gz
pfsense-packages-883feaf113a72b2c940be0012d2df1b4abc0c293.tar.bz2
pfsense-packages-883feaf113a72b2c940be0012d2df1b4abc0c293.zip
Fix IE downloading config archive/installer. Resolves #498
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/vpn_openvpn_export.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php
index 861dda89..b2d446f2 100755
--- a/config/openvpn-client-export/vpn_openvpn_export.php
+++ b/config/openvpn-client-export/vpn_openvpn_export.php
@@ -164,6 +164,10 @@ if($act == "conf" || $act == "confall") {
$exp_size = strlen($exp_data);
}
+ if (isset($_SERVER['HTTPS'])) {
+ header('Pragma: ');
+ header('Cache-Control: ');
+ }
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$exp_name}");
header("Content-Length: $exp_size");
@@ -238,6 +242,10 @@ if($act == "visc") {
if (!$error) {
$exp_size = filesize($exp_path);
+ if (isset($_SERVER['HTTPS'])) {
+ header('Pragma: ');
+ header('Cache-Control: ');
+ }
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$exp_name}");
header("Content-Length: $exp_size");
@@ -308,6 +316,10 @@ if($act == "inst") {
if (!$error) {
$exp_size = filesize($exp_path);
+ if (isset($_SERVER['HTTPS'])) {
+ header('Pragma: ');
+ header('Cache-Control: ');
+ }
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$exp_name}");
header("Content-Length: $exp_size");