quiz manual grading: MDL-20706 prevent XSRF.
Uses new require_sesskey funciton from MDL-20702.
This commit is contained in:
@@ -68,7 +68,7 @@ class quiz_report extends quiz_default_report {
|
||||
echo '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'; // for overlib
|
||||
|
||||
if ($data = data_submitted()) { // post data submitted, process it
|
||||
confirm_sesskey();
|
||||
require_sesskey();
|
||||
|
||||
// now go through all of the responses and save them.
|
||||
foreach($data->manualgrades as $uniqueid => $response) {
|
||||
|
||||
Reference in New Issue
Block a user