Permalink
Browse files

Put addslashes around question name - truncate at unlucky point could…

… break sql.
  • Loading branch information...
1 parent ce2e784 commit b0fe38fc787a71a82ce2802c708e043913ec10dd thepurpleblob committed May 24, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/format/aiken/format.php
@@ -74,7 +74,7 @@ function readquestions($lines){
} else {
//Must be the first line since no leader
$question->qtype = MULTICHOICE;
- $question->name = substr($nowline,0,50);
+ $question->name = addslashes( substr($nowline,0,50) );
$question->questiontext = $nowline;
$question->single = 1;
$question->feedback[] = "";

0 comments on commit b0fe38f

Please sign in to comment.