]> git.mjollnir.org Git - moodle.git/commitdiff
question bank: MDL-20707 prevent XSRF.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 2 Nov 2009 17:15:18 +0000 (17:15 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 2 Nov 2009 17:15:18 +0000 (17:15 +0000)
Uses new require_sesskey function from MDL-20702.

question/category.php

index df43238814378fe3d1967efd844b45137135bcc3..03652e7e48c50e1246147e3b612f7e359bea1446 100644 (file)
@@ -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,