From 8b33f401af6b093d1d5389d70a849eea1b278d24 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 21 Mar 2018 15:07:50 +0100 Subject: [PATCH] [module.professor.pdf] Added extension '.pdf' --- build/api/module/professor/pdfController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/api/module/professor/pdfController.php b/build/api/module/professor/pdfController.php index 2971bd4..9d6ffe4 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.'\.pdf"', 'Cache-Control' => 'public, must-revalidate, max-age=0', 'Pragma' => 'public', 'X-Generator' => 'mPDF',