Skip to content

Commit

Permalink
MDL-28508 bad string trunction in Aiken format.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jul 28, 2011
1 parent c46c673 commit 01ae3d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/format/aiken/format.php
Expand Up @@ -89,8 +89,8 @@ function readquestions($lines) {
} else { } else {
// Must be the first line of a new question, since no recognised prefix. // Must be the first line of a new question, since no recognised prefix.
$question->qtype = MULTICHOICE; $question->qtype = MULTICHOICE;
$question->name = htmlspecialchars(substr($nowline, 0, 50)); $question->name = shorten_text(s($nowline), 50);
$question->questiontext = htmlspecialchars($nowline); $question->questiontext = s($nowline);
$question->single = 1; $question->single = 1;
$question->feedback[] = ''; $question->feedback[] = '';
} }
Expand Down

0 comments on commit 01ae3d2

Please sign in to comment.