From 37ddc231f819ac39bac01e7364efba1a4e1329b2 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 15 Mar 2018 12:50:38 +1300 Subject: [PATCH] MDL-58080 mod_scorm: add immutable header for scorm content files. --- mod/scorm/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index 622b994517c..6543851bfb0 100644 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -972,7 +972,7 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo $revision = (int)array_shift($args); // Prevents caching problems - ignored here. $relativepath = implode('/', $args); $fullpath = "/$context->id/mod_scorm/content/0/$relativepath"; - // TODO: add any other access restrictions here if needed! + $options['immutable'] = true; // Add immutable option, $relativepath changes on file update. } else if ($filearea === 'package') { // Check if the global setting for disabling package downloads is enabled.