course/editsection.php is using sesskey.
Merged from MOODLE_14_STABLE
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
/// If data submitted, then process and store.
|
||||
|
||||
if ($form = data_submitted()) {
|
||||
if ($form = data_submitted() and confirm_sesskey()) {
|
||||
|
||||
$timenow = time();
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
$form = $section;
|
||||
}
|
||||
|
||||
$form->sesskey = !empty($USER->id) ? $USER->sesskey : '';
|
||||
|
||||
$usehtmleditor = can_use_html_editor();
|
||||
|
||||
$sectionname = get_string("name$course->format");
|
||||
|
||||
Reference in New Issue
Block a user