Skip to content

Commit

Permalink
Merge pull request #5006 from kergomard/fix_7_25428
Browse files Browse the repository at this point in the history
Fix Removal of < in KPrim-Question
  • Loading branch information
mbecker-databay authored Sep 26, 2022
2 parents 5665f3d + 2050d4d commit b6ffabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private function handleAnswerTextsSubmit($answers)
}

foreach ($answers as $key => $answer) {
$answer->setAnswerText(ilUtil::secureString($answer->getAnswerText()));
$answer->setAnswerText(ilUtil::secureString(htmlspecialchars($answer->getAnswerText())));
}

return $answers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function insert($a_tpl)
}

$tpl->setCurrentBlock("prop_text_propval");
$tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($value->getAnswertext()));
$tpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput(htmlspecialchars_decode($value->getAnswertext())));
$tpl->parseCurrentBlock();

$tpl->setCurrentBlock('singleline');
Expand Down

0 comments on commit b6ffabf

Please sign in to comment.