Skip to content

Commit 1aaa53d

Browse files
committed
Security: Exercise: Remove XSS when displaying fill in blanks results
1 parent 8667400 commit 1aaa53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/exercise/fill_blanks.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ function (&$value, $key, $tabBlankChar) {
893893
// should always be
894894
$i++;
895895
}
896-
$listAnswerResults['student_answer'][] = $listAnswerResults['words'][$i];
896+
$listAnswerResults['student_answer'][] = Security::remove_XSS($listAnswerResults['words'][$i]);
897897
if ($i + 1 < count($listAnswerResults['words'])) {
898898
// should always be
899899
$i++;

0 commit comments

Comments
 (0)