diff --git a/rss/file.php b/rss/file.php index 4715b99e4ce..cf569ee3aad 100644 --- a/rss/file.php +++ b/rss/file.php @@ -49,6 +49,12 @@ $modulename = $args[2]; $instance = (integer)$args[3]; + //Check name of module + $mods = get_list_of_plugins("mod"); + if (!in_array(strtolower($modulename), $mods)) { + error("This module doesn't exist!"); + } + if (! $course = get_record("course", "id", $courseid)) { $error = true; }