From 13418f948cc7adcda91d6b728f55a70c74cd611d Mon Sep 17 00:00:00 2001 From: Matthew Grooms Date: Fri, 3 Oct 2008 03:52:09 +0000 Subject: Correct a typo that prevented the OpenVPN Client Export tool from working when a TLS file was in use. Reported by Chris Buechler. --- packages/openvpn-client-export/openvpn-client-export.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/openvpn-client-export') diff --git a/packages/openvpn-client-export/openvpn-client-export.inc b/packages/openvpn-client-export/openvpn-client-export.inc index b2286ef2..124d775a 100755 --- a/packages/openvpn-client-export/openvpn-client-export.inc +++ b/packages/openvpn-client-export/openvpn-client-export.inc @@ -216,7 +216,7 @@ function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $uset $keyfile = "{$tempdir}/config/{$prefix}-{$user['name']}.key"; file_put_contents($keyfile, base64_decode($cert['prv'])); if ($settings['tls']) { - $tlsfile = "{$tempdir}/config/{$prefix}-tls.key\n"; + $tlsfile = "{$tempdir}/config/{$prefix}-tls.key"; file_put_contents($tlsfile, base64_decode($settings['tls'])); } -- cgit v1.2.3