зеркало из https://github.com/mozilla/gecko-dev.git
minor tweak to properly remove everything after (and including) the ? from a mailto url when extracting
the to part.
This commit is contained in:
Родитель
61f7f1b342
Коммит
a34b08b1d6
|
@ -230,13 +230,13 @@ nsresult nsMailtoUrl::ParseUrl()
|
||||||
{
|
{
|
||||||
// now parse out the search field...
|
// now parse out the search field...
|
||||||
nsCAutoString searchPart;
|
nsCAutoString searchPart;
|
||||||
m_toPart.Mid(searchPart, startOfSearchPart, -1);
|
PRUint32 numExtraChars = m_toPart.Mid(searchPart, startOfSearchPart, -1);
|
||||||
if (!searchPart.IsEmpty())
|
if (!searchPart.IsEmpty())
|
||||||
{
|
{
|
||||||
ParseMailtoUrl(searchPart);
|
ParseMailtoUrl(searchPart);
|
||||||
// now we need to strip off the search part from the
|
// now we need to strip off the search part from the
|
||||||
// to part....
|
// to part....
|
||||||
m_toPart.Cut(startOfSearchPart, -1);
|
m_toPart.Cut(startOfSearchPart, numExtraChars);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!m_toPart.IsEmpty())
|
else if (!m_toPart.IsEmpty())
|
||||||
|
|
Загрузка…
Ссылка в новой задаче