MDL-49364 quiz statistics: escape output in the response analysis

This commit is contained in:
Tim Hunt
2015-03-03 13:04:59 +00:00
parent 2abfecbc8c
commit f1fb96b698
@@ -177,6 +177,8 @@ class quiz_statistics_question_table extends flexible_table {
} else {
return 0;
}
} else if ($colname == 'part' || $colname == 'responseclass' || $colname == 'response') {
return s($response->$colname);
} else {
return null;
}