зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
ff5e6edf28
Коммит
ff0d354f40
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче