-
Bug
-
Resolution: Fixed
-
Major
-
3.6.5, 3.7.1, 3.8
-
MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-66542_master -
The JS variant of the "quote" Mustache helper only escapes the first double quote in the string. Responsible for that is this call: https://github.com/moodle/moodle/blob/0dca957716952323bd56089929ac6412136a29f1/lib/amd/src/templates.js#L487
Steps to reproduce the problem:
- Login as Manager.
- Add upcoming_events block to your dashboard.
- Create assignment in one of your courses with:
- Due date: tomorrow
- Name: Double "quote" test
- Go to the dashboard.
=> You get a Syntax error "Unexpected token t in JSON at position 27".