diff --git a/build/api/core/Request.php b/build/api/core/Request.php index 2d47c13..f7c2180 100755 --- a/build/api/core/Request.php +++ b/build/api/core/Request.php @@ -636,7 +636,7 @@ use \error\core\Error; /* (5) Script qui écrira les headers */ foreach($returned['headers'] as $header=>$value) - fwrite($taret_file, "header(\"$header: $value\");".PHP_EOL); + fwrite($taret_file, 'header(\''.$header.': '.$value.'\');'.PHP_EOL); /* (6) Script qui écrira le contenu du buffer */ chmod($buffer_fname, 0775); diff --git a/build/api/module/professor/pdfController.php b/build/api/module/professor/pdfController.php index 2971bd4..51feaea 100644 --- a/build/api/module/professor/pdfController.php +++ b/build/api/module/professor/pdfController.php @@ -148,7 +148,7 @@ class pdfController{ $headers = [ // 'Content-Description' => 'File Transfer', 'Content-Transfer-Encoding' => 'binary', - 'Content-Disposition' => 'attachment; filename=\"'.$title.'\"', + 'Content-Disposition' => 'attachment; filename="'.$title.'"', 'Cache-Control' => 'public, must-revalidate, max-age=0', 'Pragma' => 'public', 'X-Generator' => 'mPDF',