summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-26 18:11:52 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-26 18:11:52 -0400
commit7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a (patch)
tree1cdb5f8c5d56047bc960d8e839475323ad35b554
parentceb3515deac6b7cb6431a64938065417c8745c7c (diff)
downloadpfsense-7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a.zip
pfsense-7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a.tar.gz
Fix filename
-rwxr-xr-xusr/local/www/system_firmware_restorefullbackup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_firmware_restorefullbackup.php b/usr/local/www/system_firmware_restorefullbackup.php
index 1dd2f9d..77efa56 100755
--- a/usr/local/www/system_firmware_restorefullbackup.php
+++ b/usr/local/www/system_firmware_restorefullbackup.php
@@ -71,7 +71,7 @@ if($_GET['downloadbackup']) {
header("Pragma: ");
header("Content-Type: application/octet-stream");
header("Content-Length: " .(string)(filesize($path)) );
- header('Content-Disposition: attachment; filename="'.$name.'"');
+ header('Content-Disposition: attachment; filename="'.$filename.'"');
header("Content-Transfer-Encoding: binary\n");
if($file = fopen("/root/{$filename}", 'rb')){
while( (!feof($file)) && (connection_status()==0) ){
OpenPOWER on IntegriCloud