File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ private function format_first_failing_test($correctcol) {
250
250
$ n = count ($ row );
251
251
for ($ i = 0 ; $ i < $ n ; $ i ++) {
252
252
if ($ headerrow [$ i ] != 'iscorrect ' ) {
253
- $ cell = htmlspecialchars ($ row [$ i ]);
253
+ $ cell = htmlspecialchars ($ row [$ i ], ENT_COMPAT | ENT_HTML401 );
254
254
$ error .= "{$ headerrow [$ i ]}: <pre> $ cell</pre> " ;
255
255
}
256
256
}
Original file line number Diff line number Diff line change @@ -548,10 +548,8 @@ public function data_preprocessing($question) {
548
548
$ question ->penaltyregime = get_config ('qtype_coderunner ' , 'default_penalty_regime ' );
549
549
}
550
550
551
- foreach (
552
- ['datafiles ' => 'datafile ' ,
553
- 'sampleanswerattachments ' => 'samplefile ' ] as $ fileset => $ filearea
554
- ) {
551
+ $ filesets = ['datafiles ' => 'datafile ' , 'sampleanswerattachments ' => 'samplefile ' ];
552
+ foreach ($ filesets as $ fileset => $ filearea ) {
555
553
$ draftid = file_get_submitted_draft_itemid ($ fileset );
556
554
$ options = $ this ->fileoptions ;
557
555
$ options ['subdirs ' ] = false ;
You can’t perform that action at this time.
0 commit comments