Permalink
Browse files

MDL-20830 workshop requires sesskey when deleting submission

  • Loading branch information...
1 parent 8e3264e commit 726b47117970e93bf09a229d2b26a1172335dd2c @mudrd8mz mudrd8mz committed Nov 12, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/workshop/submissions.php
@@ -124,13 +124,14 @@
error("Confirm delete: submission id missing");
}
notice_yesno(get_string("confirmdeletionofthisitem","workshop", get_string("submission", "workshop")),
- "submissions.php?action=delete&id=$cm->id&sid=$sid", "view.php?id=$cm->id#sid=$sid");
+ "submissions.php?sesskey=" . sesskey() . "&action=delete&id=$cm->id&sid=$sid", "view.php?id=$cm->id#sid=$sid");
}
/******************* delete ************************************/
elseif ($action == 'delete' ) {
+ require_sesskey();
if (empty($sid)) {
error("Delete: submission id missing");
}

0 comments on commit 726b471

Please sign in to comment.