MDL-28508 bad string trunction in Aiken format.

This commit is contained in:
Tim Hunt
2011-07-28 11:52:27 +01:00
parent f664cb7c29
commit a637417d78
+2 -2
View File
@@ -96,8 +96,8 @@ class qformat_aiken extends qformat_default {
} 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[] = '';
}