admin/module.php is now using sesskey.

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7
2004-10-03 09:48:08 +00:00
parent 48ba274660
commit ebfff4e014
10 changed files with 14 additions and 4 deletions
+3
View File
@@ -13,6 +13,9 @@
error("Site isn't defined!");
}
if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
}
/// If data submitted, then process and store.
+1 -1
View File
@@ -165,7 +165,7 @@
$delete = "<a href=\"modules.php?delete=$module->name\">$strdelete</a>";
if (file_exists("$CFG->dirroot/mod/$module->name/config.html")) {
$settings = "<a href=\"module.php?module=$module->name\">$strsettings</a>";
$settings = "<a href=\"module.php?module=$module->name&sesskey=$USER->sesskey\">$strsettings</a>";
} else {
$settings = "";
}