mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix filename
This commit is contained in:
parent
ceb3515dea
commit
7e2ad1be0f
@ -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) ){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user