summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-21 19:31:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-21 19:31:38 +0000
commit7e036443a3d28f5d06a2c1cde46a4221d38c9fd6 (patch)
tree36077441d40aa9d9bb0e77cd09960f3b65b9e36f /usr/local
parent3c1b0cb1e07f14da809a48c48872ff7c60ac6982 (diff)
downloadpfsense-7e036443a3d28f5d06a2c1cde46a4221d38c9fd6.zip
pfsense-7e036443a3d28f5d06a2c1cde46a4221d38c9fd6.tar.gz
Pass correct amount of paramaters to unlink
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/diag_backup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 6fc8df1..6ee1015 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -76,7 +76,7 @@ if ($_POST) {
header("Content-Disposition: attachment; filename=$fn");
header("Content-Length: $fs");
readfile($g['tmp_path'] . "/backup_section.txt","w");
- unlink($g['tmp_path'] . "/backup_section.txt","w");
+ unlink($g['tmp_path'] . "/backup_section.txt");
} else {
$fs = filesize($g['conf_path'] . "/config.xml");
header("Content-Type: application/octet-stream");
OpenPOWER on IntegriCloud