Fix for email names with embedded &'s - Bug #16383 r=jefft

This commit is contained in:
rhp%netscape.com 1999-10-15 03:27:33 +00:00
Родитель 04abe430df
Коммит acfd505aa6
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -1074,9 +1074,19 @@ char *workAddr = nsnull;
if ( (curName) && (*curName) )
{
nsString workString(curName);
char *tName;
workString.Trim("\"");
workName = workString.ToNewCString();
tName = workString.ToNewCString();
workName = nsEscapeHTML(tName);
if (workName)
{
PR_FREEIF(tName);
}
else
{
workName = tName;
}
}
if ( (curAddress) && (*curAddress) )