mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
fix case insensitive search comparisons, r=alecf 33100 and 41633
This commit is contained in:
parent
70f1719747
commit
f004f67c31
@ -801,12 +801,12 @@ nsresult nsMsgSearchTerm::MatchString (const char *stringToMatch,
|
||||
{
|
||||
case nsMsgSearchOp::Contains:
|
||||
if ((nsnull != n_header) && ((n_str.GetBuffer())[0]) && /* INTL_StrContains(csid, n_header, n_str) */
|
||||
PL_strstr(stringToMatch, n_str))
|
||||
PL_strcasestr(stringToMatch, n_str))
|
||||
result = PR_TRUE;
|
||||
break;
|
||||
case nsMsgSearchOp::DoesntContain:
|
||||
if ((nsnull != n_header) && ((n_str.GetBuffer())[0]) && /* !INTL_StrContains(csid, n_header, n_str) */
|
||||
!PL_strstr(stringToMatch, n_str))
|
||||
!PL_strcasestr(stringToMatch, n_str))
|
||||
result = PR_TRUE;
|
||||
break;
|
||||
case nsMsgSearchOp::Is:
|
||||
|
Loading…
Reference in New Issue
Block a user