course/group.php is using sesskey.

This commit is contained in:
stronk7
2004-10-09 11:45:48 +00:00
parent 2e989420c9
commit ecea1540da
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -50,4 +50,5 @@
<input type="hidden" name="group" value="<?php p($group->id) ?>">
<input type="hidden" name="id" value="<?php p($course->id) ?>">
<input type="hidden" name="sesskey" value="<?php p($sesskey) ?>">
</form>
+3 -1
View File
@@ -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;
@@ -92,6 +92,8 @@
$defaultformat = FORMAT_MOODLE;
}
$sesskey = !empty($USER->id) ? $USER->sesskey : '';
include('group-edit.html');
if ($usehtmleditor) {