From dc1799e8c22af75c4f77dc655b5f86dd4f167abc Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 6 Feb 2013 14:55:34 -0500 Subject: We are crafting a URL, not user output. Use & not & here. Unbreaks export. --- .../openvpn-client-export/vpn_openvpn_export.php | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'config') diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index fd134a9d..fd2060ad 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -367,32 +367,32 @@ function download_begin(act, i, j) { var dlurl; dlurl = "/vpn_openvpn_export.php?act=" + act; - dlurl += "&srvid=" + escape(servers[index][0]); + dlurl += "&srvid=" + escape(servers[index][0]); if (users[i]) { - dlurl += "&usrid=" + escape(users[i][0]); - dlurl += "&crtid=" + escape(users[i][1]); + dlurl += "&usrid=" + escape(users[i][0]); + dlurl += "&crtid=" + escape(users[i][1]); } if (certs[j]) { - dlurl += "&usrid="; - dlurl += "&crtid=" + escape(certs[j][0]); + dlurl += "&usrid="; + dlurl += "&crtid=" + escape(certs[j][0]); } - dlurl += "&useaddr=" + escape(useaddr); - dlurl += "&quoteservercn=" + escape(quoteservercn); - dlurl += "&openvpnmanager=" + escape(openvpnmanager); - dlurl += "&usetoken=" + escape(usetoken); + dlurl += "&useaddr=" + escape(useaddr); + dlurl += ""eservercn=" + escape(quoteservercn); + dlurl += "&openvpnmanager=" + escape(openvpnmanager); + dlurl += "&usetoken=" + escape(usetoken); if (usepass) - dlurl += "&password=" + escape(pass); + dlurl += "&password=" + escape(pass); if (useproxy) { - dlurl += "&proxy_addr=" + escape(proxyaddr); - dlurl += "&proxy_port=" + escape(proxyport); - dlurl += "&proxy_authtype=" + escape(proxyauth); + dlurl += "&proxy_addr=" + escape(proxyaddr); + dlurl += "&proxy_port=" + escape(proxyport); + dlurl += "&proxy_authtype=" + escape(proxyauth); if (useproxypass) { - dlurl += "&proxy_user=" + escape(proxyuser); - dlurl += "&proxy_password=" + escape(proxypass); + dlurl += "&proxy_user=" + escape(proxyuser); + dlurl += "&proxy_password=" + escape(proxypass); } } - dlurl += "&advancedoptions=" + escape(advancedoptions); + dlurl += "&advancedoptions=" + escape(advancedoptions); window.open(dlurl,"_self"); } -- cgit v1.2.3