summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/diag_backup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 19555af..6a64652 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -80,11 +80,11 @@ if ($_POST) {
$config['system']['domain'] . "-" . date("YmdHis") . ".xml";
if($options == "nopackages") {
exec("sed '/<installedpackages>/,/<\/installedpackages>/d' /conf/config.xml > /tmp/config.xml.nopkg");
- $fs = filesize("/tmp/config.xml.nopkg");
+ $fs = filesize("{$g['tmp_path']}/config.xml.nopkg");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$fn");
header("Content-Length: $fs");
- readfile("/tmp/config.xml.nopkg");
+ readfile("{$g['tmp_path']}/config.xml.nopkg");
} else {
if($_POST['backuparea'] <> "") {
/* user wishes to backup specific area of configuration */
OpenPOWER on IntegriCloud