summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlibrary/SSRS/Object/ReportOutput.php6
1 files 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;
}