From ad2ef71978bc35e650446a5379a77b640a033470 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 30 Jun 2009 15:28:46 -0400 Subject: oops, we need to return a filename, not the file contents --- config/openvpn-client-export/openvpn-client-export.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/openvpn-client-export') diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 16d4de15..5df71645 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -321,10 +321,10 @@ function viscosity_openvpn_client_config_exporter($srvid, $usrid, $crtid, $usead exec("/usr/local/bin/zip {$tempdir} {$tempdir}.zip"); // Read in file and deliver to client - $outfile = file_get_contents("{$tempdir}.zip"); + $outfile = "{$tempdir}.zip"; // Remove temporary directory - exec("rm -rf {$tempdir} {$tempdir}.zip"); + exec("rm -rf {$tempdir}"); return $outfile; -- cgit v1.2.3