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

Email protection filter bug when using atto & fontcolor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.2, 3.5.3, 3.5.4, 3.6.1, 3.6.2
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      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:test@example.com"

      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);">test@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:
      test@example.com additional text

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Haikoen Ilmari M.
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: