Permalink
Browse files

Fixed SC#30 - credits go to skodak

  • Loading branch information...
1 parent da8648b commit cd8beea5d97fe1bf2015b2ea4e888b5c3eddb50e martinlanghoff committed Dec 13, 2004
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/scorm/details.php
View
@@ -31,7 +31,8 @@
//
$coursedir = "$CFG->dataroot/$course->id";
-
+ $form->reference = clean_param($form->reference, PARAM_PATH);
+
if ($scormdir = make_upload_directory("$course->id/$CFG->moddata/scorm")) {
if ($tempdir = scorm_datadir($scormdir, $form->datadir)) {
copy ("$coursedir/$form->reference", $tempdir."/".basename($form->reference));

0 comments on commit cd8beea

Please sign in to comment.