Bug 57246. Need to ampersand-escape literals that are written in nsRDFXMLDataSource::SerializeMember(), too. r=rjc, sr=scc
git-svn-id: svn://10.0.0.236/trunk@81493 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8faaf2dd25
commit
2bfaee4cd7
@ -1522,7 +1522,12 @@ static const char kRDFLILiteral1[] = " <RDF:li>";
|
||||
static const char kRDFLILiteral2[] = "</RDF:li>\n";
|
||||
|
||||
rdf_BlockingWrite(aStream, kRDFLILiteral1, sizeof(kRDFLILiteral1) - 1);
|
||||
rdf_BlockingWrite(aStream, nsAutoString(NS_STATIC_CAST(const PRUnichar*, value)));
|
||||
|
||||
nsAutoString s(value);
|
||||
rdf_EscapeAmpersands(s); // do these first!
|
||||
rdf_EscapeAngleBrackets(s);
|
||||
|
||||
rdf_BlockingWrite(aStream, s);
|
||||
rdf_BlockingWrite(aStream, kRDFLILiteral2, sizeof(kRDFLILiteral2) - 1);
|
||||
}
|
||||
NS_RELEASE(literal);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user