diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-09-26 18:11:52 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-09-26 18:11:52 -0400 |
commit | 7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a (patch) | |
tree | 1cdb5f8c5d56047bc960d8e839475323ad35b554 | |
parent | ceb3515deac6b7cb6431a64938065417c8745c7c (diff) | |
download | pfsense-7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a.zip pfsense-7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a.tar.gz |
Fix filename
-rwxr-xr-x | usr/local/www/system_firmware_restorefullbackup.php | 2 |
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) ){ |