Fix filename

This commit is contained in:
Scott Ullrich 2011-09-26 18:11:52 -04:00
parent ceb3515dea
commit 7e2ad1be0f

View File

@ -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) ){