PunycodeHelper::emailToPunycode does not support multiple email addresses #39246
Replies: 12 comments 3 replies
-
I wouldn't expect With that said though, personally I'd be careful about supporting this. I'm finding conflicting guidance on whether mailto URI schemes should actually support multiple addresses in this manner. |
Beta Was this translation helpful? Give feedback.
-
It is definitely wrong to have multiple to addresses in the link. If you need to then you should be using cc or bcc (no idea if thats supported or not) |
Beta Was this translation helpful? Give feedback.
-
It would be better to use a forwarding/group email address than exposing these email addresses. |
Beta Was this translation helpful? Give feedback.
-
@mbabker - I intended to update this today after a re-think last night. This issue was the last thing I did before logging off yesterday. So the target for this issue should be Joomla\CMS\Filter\InputFilter::emailToPunycode
There is nothing in rfc2368 that explicitly forbids the use of multiple email addresses in the link, and the Wikipedia entry for mailto includes an example - https://en.wikipedia.org/wiki/Mailto - citing rfc6068 which also includes an example with multiple email addresses. Form the point of view of the API, one could insist on restricting the syntax to a single email address, with others added using cc, but this is a user issue, not a developer one, and as this works in desktop email clients, users expect it to work in other situations too. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Updated issue title to reference Joomla\CMS\Filter\InputFilter::emailToPunycode |
Beta Was this translation helpful? Give feedback.
-
My comment above was wrong |
Beta Was this translation helpful? Give feedback.
-
Thank you for raising this issue. Joomla 3 is now in security only mode with no further bug fixes or new features. This is still an issue in Joomla 4 so I am asking gor the label to be updated to Joomla 4 and maybe someone will be interested in fixing it. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
imho this is an issue. If the user entered something correctly - we should treat it correctly. |
Beta Was this translation helpful? Give feedback.
-
This has been started again as an issue (as it cannot be directly converted back to issue from discussion). Please refer to the issue #39247 for further info. |
Beta Was this translation helpful? Give feedback.
-
Am working on it, see new issue #39247 for further discussion. I have a solution ready for for punicode encoding which works with email lists and also cc and bcc. But that does not help much because when you show an article with such mailto links in frontend you will see that the links are still broken because the email cloaking plugin needs to be fixed (or extended), too, and that's the bigger task. Not sure yet if I can do that, but will try. |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce the issue
In the Global Configuration, set to the Default Editor to "Editor - None"
Go to Content -> Articles -> Create New Article.
Enter in an article title.
In the Content textarea, paste in:
<a href="mailto:john@joomla.org,jack@joomla.org,jane@joomla.org,jill@joomla.org">Email List</a>
Click Save.
Expected result
The content is saved as
<a href="mailto:john@joomla.org,jack@joomla.org,jane@joomla.org,jill@joomla.org">Email List</a>
Actual result
The content is saved as
<a href="mailto:john@joomla.org,jack">Email List</a>
The list is clearly truncated after the first @ symbol. This happens regardless of whether a comma or semi-colon separator is used for the addresses.
System information (as much as possible)
Joomla 3.8.3
Additional comments
This can be traced to
Joomla\CMS\String\PunycodeHelper::emailToPunycode
via
Joomla\CMS\Component\ComponentHelper::filterText
and
Joomla\CMS\Filter\InputFilter::emailToPunycode
Beta Was this translation helpful? Give feedback.
All reactions