From eda27289aa77e5d226b18ff54b4b6339bfa6c6f3 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Sat, 22 Jan 2005 09:05:49 +0000 Subject: [PATCH] Closing SC#66 - more --- course/view.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/view.php b/course/view.php index 1d330cf7b56..a332faca308 100644 --- a/course/view.php +++ b/course/view.php @@ -29,6 +29,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 }