-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.5, 4.2.2
This bug has been around for some time but we did not notice it until this fix was integrated MDL-77833 and we were doing some testing using MathJax in the Course name
For what I've seen in other parts of Moodle core we need to clean the content of the message->subject field (after format_string), see blog/lib.php and nessage/output/popup/classes/output/popup_notification.php (subject = clean_param(...))
To reproduce:
- Enable the MathJax filter and ensure applies to "Content and headings" Via Site administration -> Plugins -> Manage filters
- Create a new course using as full and short name "Course $$a$$"
- Enrol one user as student to the course
- As admin or teacher create a new Page resource within the previous course, ensure that the option "Send content change notification" is selected before saving the changes
- Using the mobile app, log in as the student user and go to the Notifications option (the bell icon at the bottom of the app)
- You will see an exception