Permalink
Browse files

MDL-17227 forum: seekey-ize forum prune (split). Backported from HEAD

  • Loading branch information...
1 parent e51a39c commit c5d843ede87f46a7f44296eda34d76a9db9cdf35 stronk7 committed Nov 16, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −1 mod/forum/post.php
  2. +1 −0 mod/forum/prune.html
View
@@ -371,7 +371,7 @@
error("You can't split discussions!");
}
- if (!empty($name)) { // User has confirmed the prune
+ if (!empty($name) && confirm_sesskey()) { // User has confirmed the prune
$newdiscussion = new object();
$newdiscussion->course = $discussion->course;
View
@@ -11,6 +11,7 @@
<td align="center" colspan="2">
<input type="hidden" name="prune" value="<?php p($prune) ?>" />
<input type="hidden" name="confirm" value="<?php p($prune) ?>" />
+ <input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
<input type="submit" value="<?php print_string('prune', 'forum'); ?>" />
</td>
</tr>

0 comments on commit c5d843e

Please sign in to comment.