Permalink
Browse files

Check added. SC#23

  • Loading branch information...
1 parent 651a505 commit ec3a195f560640cfd9d5e618c87cd16a4efe5044 stronk7 committed Dec 12, 2004
Showing with 6 additions and 0 deletions.
  1. +6 −0 rss/file.php
View
6 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;
}

0 comments on commit ec3a195

Please sign in to comment.