]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from MOODLE_14_STABLE - Closing SC#66 - more
authormartinlanghoff <martinlanghoff>
Sat, 22 Jan 2005 09:06:51 +0000 (09:06 +0000)
committermartinlanghoff <martinlanghoff>
Sat, 22 Jan 2005 09:06:51 +0000 (09:06 +0000)
course/view.php

index 64adeb0e0414aaa4447236f3ee42681ec569aa64..c8f464b8c0689b84dca32185d714d451284d85a9 100644 (file)
@@ -33,6 +33,7 @@
 
     add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");
 
+    $course->format = clean_param($course->format, PARAM_ALPHA);
     if (!file_exists($CFG->dirroot.'/course/format/'.$course->format.'/format.php')) {
         $course->format = 'weeks';  // Default format is weeks
     }