dc:creator needs to be escaped in RSS feed
|Reported by:||Nettsentrisk||Owned by:||wonderboymusic|
Description (last modified by SergeyBiryukov)
If the author name contains any special characters, they might end up in the RSS feed unescaped, causing failed feed validation and thus causing problems for many readers.
The code now is:
<dc:creator><?php the_author() ?></dc:creator>
Shouldn't this be:
<dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
<dc:creator><?php htmlspecialchars(the_author()) ?></dc:creator>
This might be a result of a custom author plugin not escaping these characters on the way into the database, but Wordpress should handle this more robustly to prevent plugin authors from messing things up like this.
Change History (7)
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to 3.7