Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ajax/saveindividualfeedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
throw new \moodle_exception(get_string('incorrectjournalentry', 'journal'));
}

confirm_sesskey($sesskey);
if (!confirm_sesskey($sesskey)) {
throw new \moodle_exception('invalidsesskey');
}

// Only update entries where feedback has actually changed.
$ratingchanged = false;
Expand Down
2 changes: 1 addition & 1 deletion report.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

// Process incoming data if there is any.
if ($data = data_submitted()) {
confirm_sesskey();
require_sesskey();
$feedback = [];
$data = (array) $data;

Expand Down
Loading