From 12bd3833d41e9d993603e123de7eccade464417f Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 27 Sep 2007 20:46:35 +0200 Subject: [PATCH] [svn r13341] Use zip filename depending on path name --- main/newscorm/learnpath.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 934c30f558..e7bce52f8c 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -7876,7 +7876,9 @@ EOD; if($res === false){error_log('Could not delete temp file '.$file.' '.__FILE__.' '.__LINE__,0);} } //Send file to client - $name = 'scorm_export_'.$this->lp_id.'.zip'; + //$name = 'scorm_export_'.$this->lp_id.'.zip'; + require_once(api_get_path(LIBRARY_PATH).'fileUpload.lib.php'); + $name = replace_dangerous_char($this->get_name()).'.zip'; DocumentManager::file_send_for_download($temp_zip_file,true,$name); } /**