No Code Attached Yet bug
avatar LukasHH
LukasHH
16 Feb 2024

Steps to reproduce the issue

  • Create custom fields for users or articles as text or url.
  • Enter an email address as plain text or mailto link.
  • Display the fields in the frontend.

Expected result

The emails are cloaked by the "emailcloak" plugin and are protected from spambots.

Actual result

The emails are not cloaked by the "emailcloak" plugin and are displayed in plain text. They are not protected from spambots.

System information (as much as possible)

Joomla! 4.4.2 Stable
PHP 8.2.12

Additional comments

If I write e-mails directly into an article, they are cloaked. However, if they come via a custom field, they are not cloaked.

If I have emails in a custom module, I can set the "Prepare Content" option so that the emails are cloaked. However, this is not possible with custom fields.

avatar LukasHH LukasHH - open - 16 Feb 2024
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Feb 2024
avatar brianteeman
brianteeman - comment - 17 Feb 2024

"prepare content" should happen on fields already. There was a small bug that prevented it in some circumstances that was fixed with #42744 I suspect that this will fix your issue so please check and report back

avatar LukasHH
LukasHH - comment - 17 Feb 2024

I have checked this with the fix #42744, but it only affects the field plugin. But it's good to know that it now works correctly there too.

In the upper part of my screenshot, the fields are displayed via the field settings "automatic display: before content". The fix has no effect here.

grafik

avatar Hackwar Hackwar - change - 26 Mar 2024
Labels Added: bug
avatar Hackwar Hackwar - labeled - 26 Mar 2024

Add a Comment

Login with GitHub to post a comment