Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-6676

Double quotes breaking short answers in a multianswer/cloze question

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.4, 1.7.1, 1.8
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      Linux, PHP 5.0.4, MySQL 4.1.20, Apache 2.0.54, Moodle latest 1.6.2+
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      If double quotes character (ASCII character 34) is entered into a short answer field of a multianswer (cloze) question, and the answer is either submitted individually (using the adaptive mode) OR saved without submitting, then all characters following the first occurence of the double quotes are lost.

      Example:
      [SHORTANSWER FIELD]: It is called "love".

      • Save without submitting (1)
        [SHORTANSWER FIELD]: It is called \
      • Save without submitting (2)
        [SHORTANSWER FIELD]: It is called

      If the answer is submitted at once (not using adaptive mode or save without submitting feature), it is saved OK to the database and graded OK, but it appears damaged on the review page.
      Example:
      [SHORTANSWER FIELD]: It is called "love".

      • Submit all and finish
        [REVIEW: SHORTANSWER FIELD]: It is called \

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/Jan/07