No Code Attached Yet
avatar crystalenka
crystalenka
10 Feb 2023

Steps to reproduce the issue

Rename an image to include @2x in the filename. For example, forest@2x.png.
Select it as an image somewhere in Joomla so it displays on the front end, for example as an intro or full text image of an article.
Ensure email cloaking is enabled.
Navigate to the front end.

Expected result

Image displays normally, like so:

<img src="path-to-image/forest@2x.png" alt="alt text" />

Actual result

The img output is totally broken.

<img src="path-to-image/&lt;joomla-hidden-mail  is-link=" 1"="" is-email="1" first="Z3Jvd3Ro" last="MngucG5n" text="Z3Jvd3RoQDJ4LnBuZw==" base="">
This email address is being protected from spambots. You need JavaScript enabled to view it." alt="" width="200px" height="200px" /&gt;

Screenshot:
Screenshot 2023-02-10 at 12 02 52

System information (as much as possible)

Joomla 4.2.7

Additional comments

Many image and vector editing programs will export images with the scale as part of the file name, for example imagename@2x.png, so this is not an uncommon situation. The @ triggers the email cloaking plugin and breaks the image.

avatar crystalenka crystalenka - open - 10 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 10 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Feb 2023
avatar crystalenka
crystalenka - comment - 10 Feb 2023

I believe this bug was introduced with #39508

avatar brianteeman
brianteeman - comment - 10 Feb 2023

duplicate report #39786 ?

avatar crystalenka
crystalenka - comment - 10 Feb 2023

Yup looks like the same thing, though this issue has a bit more context

avatar richard67
richard67 - comment - 11 Feb 2023

Anyway it's a duplicate report and so one of the 2 issues should be closed. Normally we close the newer one as the older one already has some discussion.

avatar richard67 richard67 - close - 11 Feb 2023
avatar richard67 richard67 - change - 11 Feb 2023
Status New Duplicate Report
Closed_Date 0000-00-00 00:00:00 2023-02-11 13:56:44
Closed_By richard67
avatar richard67
richard67 - comment - 11 Feb 2023

Closing as duplicate report. See issue #39786 . Let's continue discussion there. I've added a comment there about the common use of "@" by some image editors. Thanks for reporting.


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

Add a Comment

Login with GitHub to post a comment