minor tweak to properly remove everything after (and including) the ? from a mailto url when extracting
the to part. git-svn-id: svn://10.0.0.236/trunk@53875 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c64b1cd2fe
commit
8a6fcaa4c8
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user