From 81d1f0914d6f821cb9e611999019b9bd373ccfd9 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 2 Nov 2009 17:15:18 +0000 Subject: [PATCH] question bank: MDL-20707 prevent XSRF. Uses new require_sesskey function from MDL-20702. --- question/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/category.php b/question/category.php index df43238814..03652e7e48 100644 --- a/question/category.php +++ b/question/category.php @@ -47,7 +47,7 @@ $streditingcategories = get_string('editcategories', 'quiz'); if ($param->left || $param->right || $param->moveup || $param->movedown|| $param->moveupcontext || $param->movedowncontext){ - confirm_sesskey(); + require_sesskey(); foreach ($qcobject->editlists as $list){ //processing of these actions is handled in the method where appropriate and page redirects. $list->process_actions($param->left, $param->right, $param->moveup, $param->movedown, -- 2.39.5