From 080b0f223ac12a694efce9d8ba0b1592968caf74 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 10 Jan 2015 19:25:40 +0545 Subject: OpenVPN export fix index typo The $server array here has and "index" key, not an "sindex" key. Actually nothing was broken by this. When the user switches server selections, server_changed() is called. That uses JavaScript and selectedIndex to work out which entry the user selected. selectedIndex is a zero-based number. It matches the zero-based index of servers, which was built from the zero-based indexes of $ras_server array, which was built from data in the config. So by good luck or good management, this array index name typo is not actually a bug. I noticed it while investigating forum https://forum.pfsense.org/index.php?topic=86263.0 --- config/openvpn-client-export/vpn_openvpn_export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/openvpn-client-export') diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index 12ce01d0..8703d2da 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -601,7 +601,7 @@ function useproxy_changed(obj) { -- cgit v1.2.3