Permalink
Browse files

course/group.php is using sesskey.

  • Loading branch information...
1 parent 2e98942 commit ecea1540da18afaf2eeee9e1037095c1f3bb9c70 stronk7 committed Oct 9, 2004
Showing with 4 additions and 1 deletion.
  1. +1 −0 course/group-edit.html
  2. +3 −1 course/group.php
View
@@ -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>
View
@@ -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) {

0 comments on commit ecea154

Please sign in to comment.