Affects Version/s: 3.5.2, 3.5.3, 3.5.4, 3.6.1, 3.6.2
Fix Version/s: None
Affected Branches:MOODLE_35_STABLE, MOODLE_36_STABLE
Email protection filter doesn't work properly when changing text color with atto's fontcolor.
Steps to reproduce:
1) Enable (either sitewise or on the course) the email protection filter
2) Create a label (or any other activity where you can type text in) and type in a valid email address and other text using atto editor
3) Turn the email address into a link with the editor's link button. Include mailto: in the link, for example "mailto:firstname.lastname@example.org"
4) Select everything (email address and other text) in the editor and change the text color using atto's fontcolor plugin.
5) Save and see the result:
<span class="" style="color: rgb(239, 69, 64);">email@example.com</span> additional text
To verify it is an email filtering bug, disable the filter and refresh the page. After disabling the filter the link is displayed correctly:
firstname.lastname@example.org additional text