diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-09-25 23:03:35 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-09-25 23:03:35 -0400 |
commit | f54a278cd386cd510e32320af859c23ade413ddd (patch) | |
tree | d6bb5c980c5db3eca8c0d4e1d4de77a803d63353 /usr | |
parent | ea76bdaf5135236c25e0c8ffa6aed894adaadaa3 (diff) | |
download | pfsense-f54a278cd386cd510e32320af859c23ade413ddd.zip pfsense-f54a278cd386cd510e32320af859c23ade413ddd.tar.gz |
Fix path
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_firmware_restorefullbackup.php | 4 |
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: '); |