MDL-20901 fixed input validation
This commit is contained in:
@@ -96,7 +96,7 @@ foreach ($standardoutcomes as $oid=>$outcome) {
|
||||
|
||||
|
||||
/// form processing
|
||||
if ($data = data_submitted()) {
|
||||
if ($data = data_submitted() and confirm_sesskey()) {
|
||||
require_capability('moodle/grade:manageoutcomes', $context);
|
||||
if (!empty($data->add) && !empty($data->addoutcomes)) {
|
||||
/// add all selected to course list
|
||||
|
||||
@@ -60,5 +60,6 @@
|
||||
</table>
|
||||
|
||||
<input name="id" type="hidden" value="<?php echo $courseid?>"/>
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user