course/delete.php is using sesskey
Merged from MOODLE_14_STABLE
This commit is contained in:
+5
-1
@@ -38,7 +38,7 @@
|
||||
"$strdeletecheck");
|
||||
|
||||
notice_yesno("$strdeletecoursecheck<br /><br />$course->fullname ($course->shortname)",
|
||||
"delete.php?id=$course->id&delete=".md5($course->timemodified),
|
||||
"delete.php?id=$course->id&delete=".md5($course->timemodified)."&sesskey=$USER->sesskey",
|
||||
"category.php?id=$course->category");
|
||||
exit;
|
||||
}
|
||||
@@ -47,6 +47,10 @@
|
||||
error("The check variable was wrong - try again");
|
||||
}
|
||||
|
||||
if (!confirm_sesskey()) {
|
||||
error(get_string('confirmsesskeybad', 'error'));
|
||||
}
|
||||
|
||||
// OK checks done, delete the course now.
|
||||
$strdeletingcourse = get_string("deletingcourse", "", $course->shortname);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user