NOBUG: Added missing quotes to database preset header call

This commit is contained in:
Sam Hemelryk 2010-08-24 07:32:25 +00:00
parent 432ba64b9b
commit 0170b834b1

View File

@ -123,7 +123,7 @@ if (optional_param('sesskey', false, PARAM_BOOL) && confirm_sesskey()) {
$exportfile = data_presets_export($course, $cm, $data);
$exportfilename = basename($exportfile);
header("Content-Type: application/download\n");
header("Content-Disposition: attachment; filename=$exportfilename");
header("Content-Disposition: attachment; filename=\"$exportfilename\"");
header('Expires: 0');
header('Cache-Control: must-revalidate,post-check=0,pre-check=0');
header('Pragma: public');