summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/system_firmware_restorefullbackup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware_restorefullbackup.php b/usr/local/www/system_firmware_restorefullbackup.php
index 8d9567c..bd98241 100755
--- a/usr/local/www/system_firmware_restorefullbackup.php
+++ b/usr/local/www/system_firmware_restorefullbackup.php
@@ -66,9 +66,9 @@ if($_GET['downloadbackup']) {
session_cache_limiter('public');
$fd = fopen($filename, "rb");
header("Content-Type: application/octet-stream");
- header("Content-Length: " . filesize($filename));
+ header("Content-Length: " . filesize("/root/" . $filename));
header("Content-Disposition: attachment; filename=\"" .
- trim(htmlentities(basename($filename))) . "\"");
+ trim(htmlentities(basename("/root/" .$filename))) . "\"");
if (isset($_SERVER['HTTPS'])) {
header('Pragma: ');
header('Cache-Control: ');
OpenPOWER on IntegriCloud