aboutsummaryrefslogtreecommitdiffstats
path: root/packages/openvpn-client-export/openvpn-client-export.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/openvpn-client-export/openvpn-client-export.inc')
-rwxr-xr-xpackages/openvpn-client-export/openvpn-client-export.inc2
1 files changed, 1 insertions, 1 deletions
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']));
}