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

Tab characters in event names produce malformed JSON in web service responses

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      1. Create a course
      2. Create an assignment with the following:
        • Give the assignment a name like: "A. my name chef" - NB: There is a TAB character (https://graphemica.com/0009) between the "A." and "my"
        • Set the due date for like 2 days from now
      3. Enrol a student in the course and log in as them
      4. Browse to the dashboard page
      5. On the timeline block to the top right of the page select "Next 7 days" from the dropdown with the clock icon on it
      6. You should get an error from the browser (it varies from browser to browser), in firefox it says "JSON.parse: bad control character in string literal at line 1 column 14 of the JSON data"

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cameron1729 cameron1729
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            9 Vote for this issue
            Watchers:
            16 Start watching this issue

              Dates

              Created:
              Updated: