No Code Attached Yet bug
avatar ChristineWk
ChristineWk
9 Feb 2022

Steps to reproduce the issue

Reported by Joomla Forum: https://forum.joomla.de/thread/15298-email-adresse-mit-doppeltem-link-dargestellt/

Expected result

Actual result

Once the plugin is actived, part of the TLD will be truncated. Example:
office@some.international
becomes:
office@some.internatio

System information (as much as possible)

Joomla 4.0.6

Additional comments

could be relevant:
// Example: any@example.org
$searchEmail = '([\w.'-+]+@(?:[a-z0-9.-]+.)+(?:[a-zA-Z0-9-]{2,10}))';

avatar ChristineWk ChristineWk - open - 9 Feb 2022
avatar ChristineWk ChristineWk - change - 9 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 9 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Feb 2022
avatar ChristineWk ChristineWk - change - 9 Feb 2022
The description was changed
avatar ChristineWk ChristineWk - edited - 9 Feb 2022
avatar brianteeman
brianteeman - comment - 9 Feb 2022

its the 2,10 part of the regex causing the truncation so it is simple to fix by increasing the number

avatar ChrisHoefliger
ChrisHoefliger - comment - 9 Feb 2022

I can confirm this issue, TLD 'international' seems to be a valid TLD. Increasing 2,10 to 2,13 does no longer truncate this TLD.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36981.

avatar ChrisHoefliger
ChrisHoefliger - comment - 9 Feb 2022

I can confirm this issue, TLD 'international' seems to be a valid TLD. Increasing 2,10 to 2,13 does no longer truncate this TLD.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36981.

avatar ChristineWk
ChristineWk - comment - 9 Feb 2022

@ChrisHoefliger Thanks for your investigation!
@brianteeman any PR possible? Thanks

avatar ChristineWk
ChristineWk - comment - 9 Feb 2022

The bug fix should then also be in Joomla 3.10. This completely outdated RegEx is also used there.

There hasn't been a length limitation for a long time now except >= 1.

avatar ChristineWk ChristineWk - change - 9 Feb 2022
Title
E-Mail Cloak: part of the TLD will be truncated
[4.0] [3.10] E-Mail Cloak: part of the TLD will be truncated
avatar ChristineWk ChristineWk - edited - 9 Feb 2022
avatar brianteeman
brianteeman - comment - 9 Feb 2022

Anyone can submit a pull request

avatar chmst chmst - change - 9 Feb 2022
Labels Added: bug
avatar chmst chmst - labeled - 9 Feb 2022
avatar richard67 richard67 - change - 9 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-09 21:29:14
Closed_By richard67
avatar richard67 richard67 - close - 9 Feb 2022
avatar richard67
richard67 - comment - 9 Feb 2022

Closing as having a pull request. It is for 3.10 but can be merged up later. Please test #36986 . Thanks in advance.

Add a Comment

Login with GitHub to post a comment