Allow for further mailto: link parameters like subject, cc, ...

Created on 24 June 2021, over 3 years ago
Updated 13 July 2023, about 1 year ago

Problem/Motivation

Imagine a link like this:
Send us an email to <a href="mailto:email@example.com?cc=email2@example.com">email@example.com with CC to email2@example.com</a>.
The text should be in the end
Send us an email to email@example.com with CC to email2@example.com.
But what we see is
Send us an email to with CC to .
And the link won't work at all, it is:
mailto:email[a]example.com?cc=email2email@example.comexample.com?cc=email2%40example.com

There are tests to test against inside "/tests/src/FunctionalJavascript/SpamSpanComplexHrefMailToTest.php"

Steps to reproduce

Write the proposed example in a wysiwyg and check the result.

Proposed resolution

I leave here just the mindset I think it should guide the solution.
This module should just target the emails and obfuscate them. And do this without impacting the text inside the link.
Currently, it replaces the email if it is different from the one in href and it hides if there are two emails.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇵🇹Portugal dxvargas

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024