Open VPN client Export Util…Yes again
-
First i want to say the client export utility is a great package
However,
It fails to download configurations in IE8. It attempts to download the php file instead and it fails.
Firefox works fine..I know this is probably a javascript issue with IE8 but I was curious if anyone has found a workaround with one of the IE8 advanced settings or something.
Also the download utility packages up the openvpn installer as one of it's options. can this be updated to version 1.2.3(latest) instead of 1.2.1?
I know you'd like to put alot of these Openvpn client utility issues to rest but it's such a valuable part to anyone utilizing the OpenVPN features.
Thank You
-
Out of curiosity, does the same thing happen when using HTTP and HTTPS?
I thought I fixed this once before…
Also make sure you are not using IE8 compatibility mode.
-
You are on to something. Yes it works with HTTPS but not regular HTTP.
-
Can you try with this change? It's the only difference in the exporter between http and https:
diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index d876b51..bc083e1 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -168,10 +168,8 @@ if($act == "conf" || $act == "confall") { $exp_size = strlen($exp_data); } - if (isset($_SERVER['HTTPS'])) { - header('Pragma: '); - header('Cache-Control: '); - } + header('Pragma: '); + header('Cache-Control: '); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename={$exp_name}"); header("Content-Length: $exp_size"); @@ -246,10 +244,8 @@ if($act == "visc") { if (!$error) { $exp_size = filesize($exp_path); - if (isset($_SERVER['HTTPS'])) { - header('Pragma: '); - header('Cache-Control: '); - } + header('Pragma: '); + header('Cache-Control: '); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename={$exp_name}"); header("Content-Length: $exp_size"); @@ -320,10 +316,8 @@ if($act == "inst") { if (!$error) { $exp_size = filesize($exp_path); - if (isset($_SERVER['HTTPS'])) { - header('Pragma: '); - header('Cache-Control: '); - } + header('Pragma: '); + header('Cache-Control: '); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename={$exp_name}"); header("Content-Length: $exp_size");
-
I have limited time at the moment but yes I can try the change later this afternoon.
I'll let you know the results
-
The changes seem to have corrected the issue. Thank You
I also found the template directory which allowed me to upgrade the opvpn installer to the latest version 2.1.3 -
I committed that fix, since it seemed to work for you.
I'll look into updating the client software version. Does it still install properly after you copied the new installer up?
-
Yes, it installs without any issues, provided it renamed correctly of course.
Thanks again
-
I updated the version in the package to 2.1.3. We'll see how it goes. :-)