Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.6.5, 3.7.1, 3.8
-
Component/s: JavaScript, Libraries, Themes
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
Fixed Branches:MOODLE_36_STABLE, MOODLE_37_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-66542_master -
Pull Master Diff URL:
Description
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".