fix unescaping of search data before passing to server, r=sspitzer, 33101

This commit is contained in:
bienvenu%netscape.com 2000-06-09 12:48:22 +00:00
parent d65d295579
commit ef26d5c9be

View File

@ -824,29 +824,30 @@ nsresult nsNNTPProtocol::LoadUrl(nsIURI * aURL, nsISupports * aConsumer)
news:?newsgroups (default host)
*/
m_typeWanted = NEW_GROUPS;
else
else
{
if (PL_strstr(commandSpecificData, "?list-pretty"))
{
m_typeWanted = PRETTY_NAMES_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
}
else if (PL_strstr(commandSpecificData, "?profile"))
{
m_typeWanted = PROFILE_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
}
else if (PL_strstr(commandSpecificData, "?list-ids"))
{
m_typeWanted= IDS_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
}
else
{
m_typeWanted = SEARCH_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
m_searchData = m_commandSpecificData;
}
if (PL_strstr(commandSpecificData, "?list-pretty"))
{
m_typeWanted = PRETTY_NAMES_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
}
else if (PL_strstr(commandSpecificData, "?profile"))
{
m_typeWanted = PROFILE_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
}
else if (PL_strstr(commandSpecificData, "?list-ids"))
{
m_typeWanted= IDS_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
}
else
{
m_typeWanted = SEARCH_WANTED;
m_commandSpecificData = nsCRT::strdup(commandSpecificData);
m_searchData = m_commandSpecificData;
nsUnescape(m_searchData);
}
}
}
else if (group)