Forced the PDF produced by the impact analysis to be downloaded as an attachment, otherwise on some browsers the result cannot be saved.

SVN:trunk[3725]
This commit is contained in:
Denis Flaven
2015-09-07 14:18:08 +00:00
parent d9adcf01cd
commit 52ad33f5b2
2 changed files with 2 additions and 5 deletions

View File

@@ -89,7 +89,6 @@ class PDFPage extends WebPage
// Add a page, we're ready to start
$this->oPdf->AddPage();
$this->SetContentType('application/pdf');
$this->SetContentDisposition('inline', $s_title.'.pdf');
$this->SetDefaultStyle();
@@ -174,10 +173,7 @@ EOF
*/
public function output()
{
if (!empty($this->sContentType))
{
$this->add_header('Content-type: '.$this->sContentType);
}
$this->add_header('Content-type: application/x-pdf');
if (!empty($this->sContentDisposition))
{
$this->add_header('Content-Disposition: '.$this->sContentDisposition.'; filename="'.$this->sContentFileName.'"');