From 883feaf113a72b2c940be0012d2df1b4abc0c293 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 27 Apr 2010 17:38:02 -0400 Subject: Fix IE downloading config archive/installer. Resolves #498 --- config/openvpn-client-export/vpn_openvpn_export.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config') 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"); -- cgit v1.2.3