course/editsection.php is using sesskey.

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7
2004-10-08 18:32:27 +00:00
parent 38c8de9591
commit 676eb5e8df
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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");