summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object/ReportOutput.php
diff options
context:
space:
mode:
authorjaysmith6811@gmail.com <jaysmith6811@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a>2012-10-15 15:00:22 +0000
committerjaysmith6811@gmail.com <jaysmith6811@gmail.com@deae1e92-32f9-c189-e222-5b9b5081a27a>2012-10-15 15:00:22 +0000
commit5942c77149cfc3cfca490c6b10ce7ed62b6b6f6f (patch)
tree20b47c089725d4fbc3c70ca9f308b3a4c0d50e03 /library/SSRS/Object/ReportOutput.php
parent544b6cdac26a4ac9f3f6eb6fb60ef7b15543e785 (diff)
downloadphp-ssrs-5942c77149cfc3cfca490c6b10ce7ed62b6b6f6f.zip
php-ssrs-5942c77149cfc3cfca490c6b10ce7ed62b6b6f6f.tar.gz
php-ssrs-5942c77149cfc3cfca490c6b10ce7ed62b6b6f6f.tar.bz2
fixed a bug with header filename
Diffstat (limited to 'library/SSRS/Object/ReportOutput.php')
-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;
}