Escape filename used in Content-Disposition header
This commit is contained in:
parent
8878394496
commit
4b6d1a3453
|
|
@ -65,6 +65,7 @@ class Spreadsheet_Excel_Writer extends Spreadsheet_Excel_Writer_Workbook
|
|||
*/
|
||||
public function send($filename)
|
||||
{
|
||||
$filename = addslashes($filename);
|
||||
header("Content-type: application/vnd.ms-excel");
|
||||
header("Content-Disposition: attachment; filename=\"$filename\"");
|
||||
header("Expires: 0");
|
||||
|
|
|
|||
Loading…
Reference in New Issue