No Code Attached Yet
avatar Globulopolis
Globulopolis
6 Feb 2023

Steps to reproduce the issue

Insert example link in article: test@домен.ком and save.

Expected result

Cloaked email

Actual result

test@домен.ком

Additional comments

If email insert as link in editor it's working as expected.

avatar Globulopolis Globulopolis - open - 6 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 6 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Feb 2023
avatar LukasHH
LukasHH - comment - 6 Feb 2023

I have an idea:
change the row

$searchEmail = '([\w\.\'\-\+]+\@(?:[a-z0-9\.\-]+\.)+(?:[a-zA-Z0-9\-]{2,24}))';

to:
$searchEmail = '([\w.'-+]+@(?:[a-z0-9.-\p{L}]+.)+(?:[a-zA-Z0-9-\p{L}]{2,24}))';

\p{L} => matches any kind of letter from any language

and the row

$pattern = '~<[^<]*(?<!\/)>(*SKIP)(*F)|' . $searchEmail . '~i';

to
$pattern = '~<[^<]*(?<!/)>(*SKIP)(*F)|' . $searchEmail . '~iu';

\u => unicode

avatar alikon
alikon - comment - 19 Feb 2023

please test #39888

avatar alikon alikon - close - 19 Feb 2023
avatar alikon alikon - change - 19 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-19 08:36:09
Closed_By alikon
avatar richard67
richard67 - comment - 19 Feb 2023

@LukasHH Could you check that PR #39888 ? I think it has several mistakes.

Add a Comment

Login with GitHub to post a comment