зеркало из https://github.com/mozilla/pjs.git
fix match hdrs for filters
This commit is contained in:
Родитель
cb46bf8387
Коммит
a1c0fb266c
|
@ -739,7 +739,7 @@ nsresult nsMsgSearchTerm::MatchString (nsString2 *stringToMatch, const char *cha
|
||||||
{
|
{
|
||||||
nsresult err = NS_COMFALSE;
|
nsresult err = NS_COMFALSE;
|
||||||
nsString2 n_str(eOneByte);
|
nsString2 n_str(eOneByte);
|
||||||
unsigned char* n_header = nsnull;
|
const char* n_header = nsnull;
|
||||||
if(nsMsgSearchOpIsEmpty != m_operator) // Save some performance for opIsEmpty
|
if(nsMsgSearchOpIsEmpty != m_operator) // Save some performance for opIsEmpty
|
||||||
{
|
{
|
||||||
#ifdef DO_I18N
|
#ifdef DO_I18N
|
||||||
|
@ -752,6 +752,7 @@ nsresult nsMsgSearchTerm::MatchString (nsString2 *stringToMatch, const char *cha
|
||||||
NS_ASSERTION(n_str, "failed get normalized string");
|
NS_ASSERTION(n_str, "failed get normalized string");
|
||||||
NS_ASSERTION(n_header, "failed get normalized header");
|
NS_ASSERTION(n_header, "failed get normalized header");
|
||||||
#else
|
#else
|
||||||
|
n_header = stringToMatch->GetBuffer() ;
|
||||||
n_str = m_value.u.string;
|
n_str = m_value.u.string;
|
||||||
#endif // DO_I18N
|
#endif // DO_I18N
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче