Permalink
Browse files

Bug #6231. Question name truncated to 250 characters.

  • Loading branch information...
1 parent 029d0a2 commit 48b358ba5673cfa4e50ffbe1c7ecd765268c483c thepurpleblob committed Aug 15, 2006
Showing with 2 additions and 0 deletions.
  1. +2 −0 question/format/gift/format.php
@@ -209,6 +209,8 @@ function readquestion($lines) {
$question->name = $question->questiontext;
}
+ // ensure name is not longer than 250 characters
+ $question->name = shorten_text( $question->name, 250 );
// determine QUESTION TYPE
$question->qtype = NULL;

0 comments on commit 48b358b

Please sign in to comment.