With Joomla 5.4.6, when selecting a version of an article history in the list, intro text and full text, html tags are displayed in its preview.
5.4
When selecting a version of an article in its versions list, intro text and full text are displayed with no html code.
When selecting a version of an article in its versions list, intro text and full text are displayed with html code.
Joomla 5.4.6
Laragon 8.6
PHP 8.5.7
This has been introduced in Joomla 5.4.6 by 8c25616
I did not find any comment for this commit.
This adds $this->escape before all echo commands.
In the case of content history preview, in administrator/compnents/com_contenthistory/tmpl/preview/preview.php, lines 54 and 61 replace the values by htmlspecialchars converted values.
Please note that the commit has been merged in 6.1.2, so we have the same behaviour.
| Labels |
Added:
No Code Attached Yet
bug
|
||
Indeed, that’s expected behavior
instead of a pure escape can we not use htmlenties then we are still secure but dont lose functionality
Here the link to the security issue: https://developer.joomla.org/security-centre/1035-20260503-core-xss-in-com-contenthistory
The underlying issue is:
| Status | New | ⇒ | Expected Behaviour |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-07-20 18:08:41 |
| Closed_By | ⇒ | richard67 |
Closing as expected behaviour
Closing as expected behaviour
The documentation has to be updated : https://guide.joomla.org/user-manual/articles/articles-article-versions
Just to show that users won't be able to understand introtext and full text anymore.
The mentioned commit was a security fix.
@SniperSister So it’s expected behavior, right?