quiz manual grading: MDL-20706 prevent XSRF.

Uses new require_sesskey funciton from MDL-20702.
This commit is contained in:
Tim Hunt
2009-11-02 17:08:04 +00:00
parent 9e63957428
commit ae43de38e0
+1 -1
View File
@@ -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) {