Permalink
Browse files

MDL-28508 bad string trunction in Aiken format.

  • Loading branch information...
1 parent 4d3c6ac commit 4d0a6fec12f818219d6e25833bc8c31cb14196d8 @timhunt timhunt committed Jul 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/format/aiken/format.php
@@ -89,8 +89,8 @@ function readquestions($lines) {
} else {
// Must be the first line of a new question, since no recognised prefix.
$question->qtype = MULTICHOICE;
- $question->name = htmlspecialchars(substr($nowline, 0, 50));
- $question->questiontext = htmlspecialchars($nowline);
+ $question->name = shorten_text(s($nowline), 50);
+ $question->questiontext = s($nowline);
$question->single = 1;
$question->feedback[] = '';
}

0 comments on commit 4d0a6fe

Please sign in to comment.