[svn r13198] Fixed possible quotes escaping problem

skala
Yannick Warnier 19 years ago
parent 6f8f4879f9
commit ac2e9ec33f
  1. 2
      main/exercice/export/scorm/scorm_classes.php

@ -322,7 +322,7 @@ class ScormAnswerFillInBlanks extends Answer
{
$texstring=substr($answer,$startlocations,($endlocations-$startlocations)+1);
$answer = substr_replace($answer,'<input type="text" name="choice_'.$this->questionId.'_fib_'.$i.'" size="10" value="" />',$startlocations,($endlocations-$startlocations)+1);
$jstmpc .= substr($texstring,1,-1).',';
$jstmpc .= "'".htmlentities(substr($texstring,1,-1),ENT_QUOTES)."',";
$i++;
$startlocations=strpos($answer,'[');
$endlocations=strpos($answer,']');

Loading…
Cancel
Save