From 0170b834b15dd26b2c5dfe9f091de058e37fa273 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 24 Aug 2010 07:32:25 +0000 Subject: [PATCH] NOBUG: Added missing quotes to database preset header call --- mod/data/preset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/preset.php b/mod/data/preset.php index 523ac57de08..512edb9773a 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -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');