summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-25 23:03:35 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-25 23:03:35 -0400
commitf54a278cd386cd510e32320af859c23ade413ddd (patch)
treed6bb5c980c5db3eca8c0d4e1d4de77a803d63353 /usr
parentea76bdaf5135236c25e0c8ffa6aed894adaadaa3 (diff)
downloadpfsense-f54a278cd386cd510e32320af859c23ade413ddd.zip
pfsense-f54a278cd386cd510e32320af859c23ade413ddd.tar.gz
Fix path
Diffstat (limited to 'usr')
-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