diff --git a/usr/local/www/system_firmware_restorefullbackup.php b/usr/local/www/system_firmware_restorefullbackup.php index 1dd2f9d08b..77efa56e40 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) ){