minor tweak to properly remove everything after (and including) the ? from a mailto url when extracting

the to part.
This commit is contained in:
mscott%netscape.com 1999-11-18 10:16:26 +00:00
Родитель 61f7f1b342
Коммит a34b08b1d6
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -230,13 +230,13 @@ nsresult nsMailtoUrl::ParseUrl()
{
// now parse out the search field...
nsCAutoString searchPart;
m_toPart.Mid(searchPart, startOfSearchPart, -1);
PRUint32 numExtraChars = m_toPart.Mid(searchPart, startOfSearchPart, -1);
if (!searchPart.IsEmpty())
{
ParseMailtoUrl(searchPart);
// now we need to strip off the search part from the
// to part....
m_toPart.Cut(startOfSearchPart, -1);
m_toPart.Cut(startOfSearchPart, numExtraChars);
}
}
else if (!m_toPart.IsEmpty())