mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
fix unescaping of search data before passing to server, r=sspitzer, 33101
This commit is contained in:
parent
d65d295579
commit
ef26d5c9be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user