Disallow quotes in etag.

git-svn-id: svn://10.0.0.236/trunk@47313 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc%netscape.com
1999-09-14 08:25:14 +00:00
parent e5621524e1
commit 0800073b91

View File

@@ -745,6 +745,14 @@ BookmarkParser::ParseBookmark(const nsString& aLine, nsCOMPtr<nsIRDFContainer>&
// save ping ETag
if (pingETag.Length() > 0)
{
PRInt32 offset;
// Note: don't allow quotes in etag
while ((offset = pingETag.FindChar('\"')) >= 0)
{
pingETag.Cut(offset, 1);
}
nsCOMPtr<nsIRDFLiteral> pingLiteral;
if (NS_SUCCEEDED(rv = gRDF->GetLiteral(pingETag.GetUnicode(),
getter_AddRefs(pingLiteral))))