]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed the text file too
authormoodler <moodler>
Sat, 17 Apr 2004 03:28:29 +0000 (03:28 +0000)
committermoodler <moodler>
Sat, 17 Apr 2004 03:28:29 +0000 (03:28 +0000)
mod/quiz/report/fullstat/report.php

index d73cf98f42e7f63550f931079be9f467eb6f7973..f46b13ed67e76b278d589eca991b8292eb2dd337 100755 (executable)
@@ -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");