Skip to content

Commit c2ec80a

Browse files
committed
Exercise: Fix scape user answer for fill in blanks question - refs BT#23068
1 parent 60fda7f commit c2ec80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/exercise/exercise.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4527,13 +4527,13 @@ function ($answerId) use ($objAnswerTmp) {
45274527
// This value is the user input, not escaped while correct answer is escaped by ckeditor
45284528
// Works with cyrillic alphabet and when using ">" chars see #7718 #7610 #7618
45294529
// ENT_QUOTES is used in order to transform ' to '
4530-
if (!$from_database) {
4530+
//if (!$from_database) {
45314531
$studentAnswer = FillBlanks::clearStudentAnswer($studentAnswer);
45324532
if ($debug) {
45334533
error_log('Student answer cleaned:');
45344534
error_log($studentAnswer);
45354535
}
4536-
}
4536+
//}
45374537

45384538
$isAnswerCorrect = 0;
45394539
if (FillBlanks::isStudentAnswerGood($studentAnswer, $correctAnswer, $from_database)) {

0 commit comments

Comments
 (0)