#1451 closed defect (bug) (fixed)
RSS feeds are not valid if there are special characters in the title
Reported by: | sameerd | Owned by: | leftjustified |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | normal | Version: | 1.5.2 |
Component: | Template | Keywords: | RSS XML special characters bg|has-patch |
Focuses: | Cc: |
Description
If there are special characters in the Blog's title, they are not correctly escaped in the RSS feeds.
Test Case Example: http://test.dcostanet.net/wordpress/ The title has been set to
Test blog ; & ” ‘ ; < > ! special chars
In the RSS feed. http://test.dcostanet.net/wordpress/?feed=atom the title shows up as
<title>Test blog ; & " ' ; < > ! special chars</title>
The special characters (double and single quote, and the inequality signs) need to be escaped. There is a similar problem with the other RSS feeds. http://test.dcostanet.net/wordpress/?feed=rss2
In the html part of the document http://test.dcostanet.net/wordpress/ the special characters are escaped correctly
<title>Test blog ; & ” ‘ ; < > ! special chars </title>
This bug applies to version 1.5.1.2 (Trac reports it as 1.5.2) - a bug in trac maybe?
Attachments (1)
Change History (6)
#2
@
18 years ago
- Component changed from Administration to Template
- Keywords bg|has-patch added
- Owner changed from anonymous to leftjustified
- Severity changed from minor to normal
- Status changed from new to assigned
I ran into this bug on 2.1svn while trying some other things. Simply adding an extra filter to the default-filters file fixes the problem in both 2.0 and 2.1 branches.
Displays fine in 2.0.4, but still messed up on feed.
Goes out in ATOM as follows:
and in RSS2, it causes this error:
due to this titling: