Comment 18 for bug 222219

Revision history for this message
In , Mscott-mozilla (mscott-mozilla) wrote :

WOW! This bug has nothing to do with the RSS module at all. It's a bug way down
deep in the bowels of our RDFXML serializer which serializes our datasource to disk:

http://lxr.mozilla.org/aviarybranch/source/rdf/base/src/nsRDFXMLSerializer.cpp#557

nsRDFXMLSerializer::SerializeDescription

takes our RDF resource which has a value of:

http://ln.hixie.ch/?start=1101165341&count=1

and turns it into a URL then escapes it by calling:
rdf_EscapeAttributeValue
which turns it into:
http://ln.hixie.ch/?start=1101165341&count=1

note the double amp

This is the value that get serialized to feeditems.rdf

When we next load the datasource again from disk, it looks like the rdf xml data
 source doesn't account for this unescaping so it ends up in memory with the
double ampersands!