aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-30 15:28:46 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-30 15:28:46 -0400
commitad2ef71978bc35e650446a5379a77b640a033470 (patch)
treed144fcd3ea186ad5985478fab39b2493898ad0bf /config
parentdfd7cb9e45807223b0937b1f0c2727ab85402ce4 (diff)
downloadpfsense-packages-ad2ef71978bc35e650446a5379a77b640a033470.tar.gz
pfsense-packages-ad2ef71978bc35e650446a5379a77b640a033470.tar.bz2
pfsense-packages-ad2ef71978bc35e650446a5379a77b640a033470.zip
oops, we need to return a filename, not the file contents
Diffstat (limited to 'config')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc4
1 files changed, 2 insertions, 2 deletions
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;