MDL-20830 workshop requires sesskey when removing attachment
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user