fix case insensitive search comparisons, r=alecf 33100 and 41633

This commit is contained in:
bienvenu%netscape.com 2000-06-06 23:09:18 +00:00
parent 70f1719747
commit f004f67c31

View File

@ -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: