MDL-20901 fixed input validation

This commit is contained in:
Petr Skoda
2009-11-19 19:48:00 +00:00
parent bb4cf8d719
commit 2b98208b2c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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>