mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed possible prblems with Excel names bug 1243
This commit is contained in:
parent
be99333b5d
commit
7001130bac
1 changed files with 2 additions and 1 deletions
|
@ -299,7 +299,8 @@ class quiz_report extends quiz_default_report {
|
|||
require_once("$CFG->libdir/excel/Worksheet.php");
|
||||
require_once("$CFG->libdir/excel/Workbook.php");
|
||||
header("Content-type: application/vnd.ms-excel");
|
||||
header("Content-Disposition: attachment; filename=$course->shortname ".$quiz->name.".xls");
|
||||
$downloadfilename = clean_filename("$course->shortname $quiz->name");
|
||||
header("Content-Disposition: attachment; filename=$downloadfilename.xls");
|
||||
header("Expires: 0");
|
||||
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
|
||||
header("Pragma: public");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue