diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-24 17:45:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-24 17:45:15 +0000 |
commit | e55f5da69d61ad99a413f3c0b548a2026642fdff (patch) | |
tree | b7ba25180dde44a65b541b0babeb7194f51c1176 /usr | |
parent | 59d922dc4b7667c875142c18b861fc94787c07ac (diff) | |
download | pfsense-e55f5da69d61ad99a413f3c0b548a2026642fdff.zip pfsense-e55f5da69d61ad99a413f3c0b548a2026642fdff.tar.gz |
readfile only takes one argument
Diffstat (limited to 'usr')
-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 2e1b265..57e5eb7 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -97,7 +97,7 @@ if ($_POST) { $fn = $_POST['backuparea'] . "-" . $fn; header("Content-Disposition: attachment; filename=$fn"); header("Content-Length: $fs"); - readfile($g['tmp_path'] . "/backup_section.txt","w"); + readfile($g['tmp_path'] . "/backup_section.txt"); unlink($g['tmp_path'] . "/backup_section.txt"); } else { $fs = filesize($g['conf_path'] . "/config.xml"); |