From 5942c77149cfc3cfca490c6b10ce7ed62b6b6f6f Mon Sep 17 00:00:00 2001 From: "jaysmith6811@gmail.com" Date: Mon, 15 Oct 2012 15:00:22 +0000 Subject: fixed a bug with header filename --- library/SSRS/Object/ReportOutput.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php index 13fa775..628b814 100755 --- a/library/SSRS/Object/ReportOutput.php +++ b/library/SSRS/Object/ReportOutput.php @@ -7,10 +7,10 @@ */ class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { - public function download($filename){ + public function download($filename) { header("Cache-Control: public"); header("Content-Description: File Transfer"); - header("Content-Disposition: attachment; filename=$filename"); + header('Content-Disposition: attachment; filename="' . $filename . '"'); header("Content-Type: " . $this->mimeType); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . strlen($this->Result)); @@ -18,7 +18,7 @@ class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { die($this->Result); } - public function __toString(){ + public function __toString() { return (string) $this->Result; } -- cgit v1.1