Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#597 closed defect (fixed)

Ampersand (&) in Project title breaks timeline RSS feed

Reported by: Ian Leader <ian_dot_leader_at_line_dot_co_dot_uk> Owned by: daniel
Priority: normal Milestone: 0.8
Component: timeline Version: 0.7.1
Severity: normal Keywords: RSS, escapes, reports
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If there is an ampersand in the Trac project title, it is not escaped in the RSS timeline feed, and consequently the feed is not well-formed XML.

This may well be the case in other RSS feeds, but I changed the title of our project before I thought to check.

Attachments (1)

rss_title_esc_fix_trunc_803.diff (2.3 KB ) - added by anonymous 20 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by daniel, 20 years ago

Owner: changed from Jonas Borgström to daniel
Status: newassigned

by anonymous, 20 years ago

comment:2 by Ian Leader <ian_dot_leader_at_line_dot_co_dot_uk>, 20 years ago

Keywords: reports added

Have attached diff to source:/trunk/#803 to fix this ticket, and to fix the same problem in the report RSS feed.

Took the approach of adding project.name.rss value, and updating the templates, as this seemed to be the aproach taken to item-based RSS kludges in [803].

the hdf.setValue is in core.py - this seemed the most sensible place, as this problem will occur in pretty much any RSS feed, but if there is a better place, please let me know.

comment:3 by daniel, 20 years ago

Milestone: 0.8

comment:4 by daniel, 20 years ago

Resolution: fixed
Status: assignedclosed

Applied in [825]. Thanks for the patch, Ian! Escaping entities might be a bigger issue than just RSS, and might become apparent later.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.