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

Backslashes in category names need to be escaped in MoodleXML export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.8
    • Fix Version/s: 1.9.10
    • Component/s: Questions
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Question bank categories with backslashes in their name cause problems when exported in MoodleXML format. The backslashes are not escaped, and thus when the XML file is imported into another course the slashes are interpreted as path delimiters, nesting later parts of the title within earlier parts.

      example: a category called "terms/concepts of psycho/neurolinguistics (T/F questions)" would get imported as four nested categories:
      -terms
      --concepts of psycho
      ---neurolinguistics (T
      ----F questions)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                drmccloy Daniel McCloy
                Tester:
                Nobody
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Oct/10