Skip to content

Commit

Permalink
missing htmlSpecialChars() in INPUT's value
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 2, 2004
1 parent 1721518 commit 833b9fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/questiontypes/shortanswer/questiontype.php
Expand Up @@ -99,7 +99,7 @@ function save_question_options($question) {
return true;
}
}

function print_question_formulation_and_controls($question,
$quiz, $readonly, $answers, $correctanswers, $nameprefix) {
/// This implementation is also used by question type NUMERICAL
Expand All @@ -115,7 +115,7 @@ function print_question_formulation_and_controls($question,

$stranswer = get_string("answer", "quiz");
if (isset($question->response[$nameprefix])) {
$value = ' value="'.$question->response[$nameprefix].'" ';
$value = ' value="'.htmlSpecialChars($question->response[$nameprefix]).'" ';
} else {
$value = ' value="" ';
}
Expand Down

0 comments on commit 833b9fd

Please sign in to comment.