blocks: MDL-20710 prevent XSRF.

Uses new require_sesskey function from MDL-20702.
This commit is contained in:
Tim Hunt
2009-11-02 17:16:56 +00:00
parent c74eec3bee
commit 3c2cfc8f3f
+1 -1
View File
@@ -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'])) {