<a href="https://www.ikea.com/gb/en/p/birkelånga-tray-patterned-multicolour-grey-green-40537947" target="_blank">BIRKELÅNGA</a>
The article content should remain intact as the HTML is valid.
The content becomes
a href="https://www.ikea.com/gb/en/p/birkelånga-tray-patterned-multicolour-grey-green-40537947"""BIRKELÅNGA</a>
once filtered and saved. The first < and > from the <a>
tag are removed and the last " of the attribute value is encoded.
Joomla 4.2.4
Browser (Any)
PHP 8.0.14
When the Text Filter Filter Type is set to No Filtering, this issue does not occur, and the content is saved correctly.
Labels |
Added:
No Code Attached Yet
|
I can confirm this, only with my system the <img>
tag is mangled as well, no Fatal Error, and strange enough <img gets ig
Labels |
Added:
J4 Issue
bug
|
This appears to be fixed in this PR - joomla-framework/filter#50
Yes i have successfully tested joomla-framework/filter/pull/50 - closing this issue then
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-18 13:51:16 |
Closed_By | ⇒ | MacJoom |
This appears to only occur when the special characters are in the href attribute value. For example, the following link, where the special caharacters are in the title attribute value, the Text Filter does not affect the HTML:
Further investigation shows that when a special character is in the src attribute value of an
<img>
tag for example, a FatalError Error: Maximum execution time of 30 seconds exceeded is generated with reference to libraries/vendor/joomla/string/src/phputf8/mbstring/core.php on line 94