diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-21 19:31:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-21 19:31:38 +0000 |
commit | 7e036443a3d28f5d06a2c1cde46a4221d38c9fd6 (patch) | |
tree | 36077441d40aa9d9bb0e77cd09960f3b65b9e36f /usr/local | |
parent | 3c1b0cb1e07f14da809a48c48872ff7c60ac6982 (diff) | |
download | pfsense-7e036443a3d28f5d06a2c1cde46a4221d38c9fd6.zip pfsense-7e036443a3d28f5d06a2c1cde46a4221d38c9fd6.tar.gz |
Pass correct amount of paramaters to unlink
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_backup.php | 2 |
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"); |