Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28508 bad string trunction in Aiken format.

  • Loading branch information...
commit 01ae3d20da2ccb52c6318681f6a808fcdaaa7cbe 1 parent c46c673
@timhunt timhunt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/format/aiken/format.php
View
4 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 01ae3d2

Please sign in to comment.
Something went wrong with that request. Please try again.