Make sure to escape bookmark folder names before writing them out to the
file. Bug 65098, patch by Hugh Kennedy <kennedyh@engin.umich.edu>, r=bzbarsky, sr=shaver git-svn-id: svn://10.0.0.236/trunk@114082 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ec01351fa8
commit
68f9dc5cd8
@ -4794,7 +4794,15 @@ nsBookmarksService::WriteBookmarksContainer(nsIRDFDataSource *ds, nsOutputFileSt
|
||||
|
||||
// output title
|
||||
if (!name.IsEmpty())
|
||||
strm << name.get();
|
||||
{
|
||||
// see bug #65098
|
||||
char *escapedAttrib = nsEscapeHTML(name.get());
|
||||
if (escapedAttrib)
|
||||
{
|
||||
strm << escapedAttrib;
|
||||
nsCRT::free(escapedAttrib);
|
||||
}
|
||||
}
|
||||
strm << "</H3>\n";
|
||||
|
||||
// output description (if one exists)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user