зеркало из https://github.com/mozilla/pjs.git
fix for #22345. we were unescaping a message id when we shouldn't be.
a=sdagley
This commit is contained in:
Родитель
58b4c59a41
Коммит
531f5f425d
|
@ -63,4 +63,5 @@ interface nsINntpUrl : nsISupports {
|
||||||
const long ActionSaveMessageToDisk = 2;
|
const long ActionSaveMessageToDisk = 2;
|
||||||
const long ActionCancelArticle = 3;
|
const long ActionCancelArticle = 3;
|
||||||
const long ActionPostArticle = 4;
|
const long ActionPostArticle = 4;
|
||||||
|
const long ActionSearch = 5;
|
||||||
};
|
};
|
||||||
|
|
|
@ -928,7 +928,11 @@ nsresult nsNNTPProtocol::ParseURL(nsIURI * aURL, PRBool * bValP, char ** aGroup,
|
||||||
|
|
||||||
nsAllocator::Free(fullPath);
|
nsAllocator::Free(fullPath);
|
||||||
|
|
||||||
nsUnescape (group);
|
// more to do here, but for now, this works.
|
||||||
|
// only escape if we are doing a search
|
||||||
|
if (m_newsAction == nsINntpUrl::ActionSearch) {
|
||||||
|
nsUnescape (group);
|
||||||
|
}
|
||||||
|
|
||||||
/* "group" now holds the part after the host name:
|
/* "group" now holds the part after the host name:
|
||||||
"message@id?search" or "/group/xxx?search" or "/message?id@xx?search"
|
"message@id?search" or "/group/xxx?search" or "/message?id@xx?search"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче