course/editsection.php is using sesskey.

This commit is contained in:
stronk7
2004-10-08 18:29:02 +00:00
parent 58b9565184
commit ac63a3f445
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@
</tr>
</table>
<input type="hidden" name=id value="<?php echo $form->id ?>">
<input type="hidden" name=sesskey value="<?php echo $form->sesskey ?>">
<input type="submit" value="<?php print_string("savechanges") ?>">
</form>
</center>
+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");