Skip to content

Commit

Permalink
blocks: MDL-20710 prevent XSRF.
Browse files Browse the repository at this point in the history
Uses new require_sesskey function from MDL-20702.
  • Loading branch information
timhunt committed Nov 2, 2009
1 parent c74eec3 commit 3c2cfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ function file_get_draft_area_files($draftitemid, $filepath = '/') {
function file_get_submitted_draft_itemid($elname) {
$param = optional_param($elname, 0, PARAM_INT);
if ($param) {
confirm_sesskey();
require_sesskey();
}
if (is_array($param)) {
if (!empty($param['itemid'])) {
Expand Down

0 comments on commit 3c2cfc8

Please sign in to comment.