- edited description
Regression v1.4.13 due to fix for #25
Hello,
The fix that was applied to solve #25 introduced a regression. Indeed, if you have accented letters in your <media:copyright> or <media:title> tags, using "htmlentities" will replace them with their html entities counterpart. Unfortunately, this should not be done in XML! Indeed, the XML will not be valid after that and the RSS feed will be broken.
For example, with the new version:
<media:copyright>Light ZOOM Lumière</media:copyright>
is replaced with:
<media:copyright>Light ZOOM Lumière</media:copyright>
Which gives an error: "error on line 36 at column 42: Entity 'egrave' not defined".
The correct function to use is: http://php.net/manual/fr/function.htmlspecialchars.php
This function only replace the characters that may break XML.
Tristan
Comments (4)
-
reporter -
repo owner - changed status to resolved
→ <<cset f93568ec0ade>>
-
repo owner Hello, sorry for the bug and thank you for your report! I didn't test the release properly with international chars :( and I didn't know that htmlentities() will break the XML... There is always something to learn... :) Should be fixed now.
-
reporter Thanks for the quick action. You're welcome. I was also not aware of it before the bug appeared... ;) but I had to quickly find a solution.
- Log in to comment