Ticket #929 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 7 years ago

html entities should not appear in rss2 title

Reported by: anonymousbugger Owned by: ryan
Priority: normal Milestone:
Component: General Version: 1.5
Severity: major Keywords:
Cc: ringmaster, darkcanuck, ronny

Description

If a html-entity appears in the title, the xml file is broken.

so an entity sould be decoded and encoded as utf8

echo utf8_encode(html_entity_decode($title));

instead of echo $title;

in wp-includes/feed-functions.php line 12

will fix this problem

Attachments

ent2ncr.diff Download (9.0 KB) - added by anonymousbugger 7 years ago.

Change History

  • Patch set to No

seams only a workaround and will create new problems, while using special chars in title.

comment:3   matt7 years ago

utf8_encode -- Encodes an ISO-8859-1 string to UTF-8. A lot of people don't use ISO-8859.

This is happening to my comments feed whenever I trackback my own site. Other trackbacks come in just fine, but my own trackbacks turn the comments feed into one big XML Parse error.

See bug 1132 (duplicate?) for another possible fix:  http://mosquito.wordpress.org/view.php?id=1132

This plugin will also fix the problem:

 http://guff.szub.net/entity2ncr/

comment:8   ryan7 years ago

  • Owner changed from anonymous to rboren
  • fixed_in_version set to 1.5.1
  • Status changed from new to closed
  • Resolution changed from 10 to 20
Note: See TracTickets for help on using tickets.