[ros-bugs] [Bug 2014] New: Generated feeds don't escape ampersands
ReactOS.Bugzilla at www.reactos.org
ReactOS.Bugzilla at www.reactos.org
Sat Feb 3 03:38:49 CET 2007
http://www.reactos.org/bugzilla/show_bug.cgi?id=2014
Summary: Generated feeds don't escape ampersands
Product: Online Services
Version: unspecified
Platform: x86 Hardware
URL: http://www.reactos.org/en/newsfeed_rss.xml
OS/Version: ReactOS
Status: NEW
Severity: normal
Priority: P3
Component: RosCMS
AssignedTo: ros-bugs at reactos.org
ReportedBy: reactos_bugzilla.zen.ssokolow at spamgourmet.com
QAContact: ros-bugs at reactos.org
Generated feeds don't escape ampersands (the & symbol) and I can only assume
the same problem exists for other characters significant to XML syntax like
less/greater-than symbols.
Because XML is a "be strict about what you accept" format, this renders the
feeds completely useless to most feed aggregators. I know KDE's aKregator fails
to parse the feed in it's current state.
The simplest way to solve the problem would probably be to replace & with &
and then < and > with < and > throughout the input data. I forget how to
do so in PHP and Perl, but for Python, it's as simple as:
inputstring =
inputString.replace('&','&').replace('<','<').replace('>','>')
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.
More information about the Ros-bugs
mailing list