Opened 19 years ago
Closed 18 years ago
#4321 closed defect (bug) (fixed)
Feed validation error with html in categories
| Reported by: | devil1591 | Owned by: | westi |
|---|---|---|---|
| Priority: | low | Milestone: | 2.7 |
| Component: | General | Version: | 2.2 |
| Severity: | minor | Keywords: | rss has-patch |
| Cc: | Focuses: |
Description
when I put a "&" in a category name, the feed fails validation on http://feedvalidator.org/
example:
line 46, column 41: category should not contain HTML: & [help] <category><![CDATA[Form. & Régl.]]></category>
Attachments (2)
Change History (11)
#5
@
19 years ago
- Keywords needs-patch added; has-patch removed
- Owner changed from to
- Status new → assigned
Nazguls patch does not fix the warning on the validator for me:
line 23, column 51: category should not contain HTML: & [help] <category><![CDATA[something&somethingelse]]></category>
Should we be converting the & back to & here?
#7
@
18 years ago
- Keywords has-patch added; needs-patch removed
The problem is the category name has had things like the ampersand converted into their HTML Entities. So to clear the warning, it should be sufficient to decode the $cat_name when producing the feed.
Attached patch (4321-new.diff) does exactly that and allows the feed to validate without any warnings.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
That particular error is only a warning, not a feed breaker. It doesn't make it fail validation, just makes it give the warning.