diff options
Diffstat (limited to 'usr/local/www/diag_backup.php')
-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"); |