MDL-20830 workshop requires sesskey when removing attachment

This commit is contained in:
David Mudrak
2009-11-12 21:30:01 +00:00
parent 726b471179
commit e06d7b43a0
+2 -1
View File
@@ -223,7 +223,7 @@
}
notice_yesno(get_string("confirmremoveattachments","workshop"),
"submissions.php?action=removeattachments&id=$cm->id&sid=$sid",
"submissions.php?sesskey=" . sesskey() . "&action=removeattachments&id=$cm->id&sid=$sid",
"view.php?id=$cm->id");
}
@@ -340,6 +340,7 @@
/******************* remove (all) attachments ************************************/
elseif ($action == 'removeattachments' ) {
require_sesskey();
$form = data_submitted();
if (empty($form->sid)) {