From 740c44428e6c227ec3eceb5979b978a5a5c6b5a8 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 9 Oct 2004 11:47:36 +0000 Subject: [PATCH] course/group.php is using sesskey. Merged from MOODLE_14_STABLE --- course/group-edit.html | 1 + course/group.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/course/group-edit.html b/course/group-edit.html index fe3e336da7..a3090cece3 100644 --- a/course/group-edit.html +++ b/course/group-edit.html @@ -50,4 +50,5 @@ + diff --git a/course/group.php b/course/group.php index afd049253a..c204541096 100644 --- a/course/group.php +++ b/course/group.php @@ -58,7 +58,7 @@ /// If data submitted, then process and store. - if ($form = data_submitted()) { + if ($form = data_submitted() and confirm_sesskey()) { if (empty($form->name)) { $edit = true; @@ -93,6 +93,8 @@ $defaultformat = FORMAT_MOODLE; } + $sesskey = !empty($USER->id) ? $USER->sesskey : ''; + include('group-edit.html'); if ($usehtmleditor) { -- 2.39.5