summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-24 17:45:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-24 17:45:15 +0000
commite55f5da69d61ad99a413f3c0b548a2026642fdff (patch)
treeb7ba25180dde44a65b541b0babeb7194f51c1176 /usr/local
parent59d922dc4b7667c875142c18b861fc94787c07ac (diff)
downloadpfsense-e55f5da69d61ad99a413f3c0b548a2026642fdff.zip
pfsense-e55f5da69d61ad99a413f3c0b548a2026642fdff.tar.gz
readfile only takes one argument
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 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");
OpenPOWER on IntegriCloud