From 1cd06b9b9c36db42fc6d910de3ada8f440d65f58 Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Sat, 17 Apr 2004 03:28:29 +0000
Subject: [PATCH] Fixed the text file too

---
 mod/quiz/report/fullstat/report.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mod/quiz/report/fullstat/report.php b/mod/quiz/report/fullstat/report.php
index d73cf98f42..f46b13ed67 100755
--- a/mod/quiz/report/fullstat/report.php
+++ b/mod/quiz/report/fullstat/report.php
@@ -559,7 +559,8 @@ class quiz_report extends quiz_default_report {
         /// Print header to force download
 
         header("Content-Type: application/download\n"); 
-        header("Content-Disposition: attachment; filename=\"$course->shortname $quiz->name.txt\"");
+        $downloadfilename = clean_filename("$course->shortname $quiz->name");
+        header("Content-Disposition: attachment; filename=\"$downloadfilename.txt\"");
         header("Expires: 0");
         header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
         header("Pragma: public");
-- 
2.39.5