From 7e2ad1be0f32bae5647a8989deb1fa8a7cd2e42a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 26 Sep 2011 18:11:52 -0400 Subject: Fix filename --- usr/local/www/system_firmware_restorefullbackup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/system_firmware_restorefullbackup.php') 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) ){ -- cgit v1.1