Commit 10837b80 10837b80e19e0a8eb43bf8559bcdce61263de1a8 by Sergey Poznyakoff

(imap4d_search0): Use case-insensitive comparison

1 parent 27dfc1db
......@@ -224,7 +224,7 @@ imap4d_search0 (char *arg, int isuid, char *replybuf, size_t replysize)
}
/* Currently only ASCII is supported */
if (strcmp (parsebuf.token, "US-ASCII"))
if (strcasecmp (parsebuf.token, "US-ASCII"))
{
snprintf (replybuf, replysize, "Charset not supported");
return RESP_NO;
......
......@@ -47,7 +47,7 @@ status_get_handler (const char *name)
struct status_table *p;
for (p = status_table; p->name; p++)
if (strcmp (p->name, name) == 0)
if (strcasecmp (p->name, name) == 0)
return p->fun;
return NULL;
}
......