No Code Attached Yet
avatar Ltamann
Ltamann
3 Dec 2022

Steps to reproduce the issue

the comment on top of the file /** Examples: has ?> tags and these are producing that the complete file is converted in comment.

  • Examples:
    • <script>alert(Joomla.Text._('<?php echo Text::_("JDEFAULT", array("script"=>true)); ?>'));</script>
    • will generate an alert message containing 'Default'
    • <?php echo Text::_("JDEFAULT"); ?> will generate a 'Default' string

Expected result

Actual result

System information (as much as possible)

Additional comments

easy to repair

avatar Ltamann Ltamann - open - 3 Dec 2022
avatar Ltamann Ltamann - change - 3 Dec 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 3 Dec 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Dec 2022
avatar joomdonation
joomdonation - comment - 4 Dec 2022

Could you please explain exactly what's broken here? It is not clear to me base on your issue description. I have the feeling that it is broken in your Joomla installation only. So maybe you should check to see if the issue you found is still valid with the latest code from here https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Language/Language.php ?

avatar Ltamann
Ltamann - comment - 4 Dec 2022

I was talking about the Joomla_4.2.5-Stable-Full_Package\libraries\src\Language\Text.php file.
https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Language/Text.php
Maybe its only a problem of my script program displaying the code wrong, in github it looks fine:
image

avatar joomdonation
joomdonation - comment - 4 Dec 2022

Look good on my editor (phpstorm), so if there is anything wrong here, I guess it is a problem with your file or your editor

Text

avatar richard67 richard67 - change - 4 Dec 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-12-04 12:18:49
Closed_By richard67
avatar richard67 richard67 - close - 4 Dec 2022
avatar richard67
richard67 - comment - 4 Dec 2022

Notepad++ also shows it well here regarding syntax colouring:

2022-12-04_j4-issue-39352

So it's definitely an issue with your editor.

Closing as not an issue with the CMS code. Feel free to re-open if you think this is wrong.

Add a Comment

Login with GitHub to post a comment