(imap4d_search0): Use case-insensitive comparison
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -224,7 +224,7 @@ imap4d_search0 (char *arg, int isuid, char *replybuf, size_t replysize) | ... | @@ -224,7 +224,7 @@ imap4d_search0 (char *arg, int isuid, char *replybuf, size_t replysize) |
224 | } | 224 | } |
225 | 225 | ||
226 | /* Currently only ASCII is supported */ | 226 | /* Currently only ASCII is supported */ |
227 | if (strcmp (parsebuf.token, "US-ASCII")) | 227 | if (strcasecmp (parsebuf.token, "US-ASCII")) |
228 | { | 228 | { |
229 | snprintf (replybuf, replysize, "Charset not supported"); | 229 | snprintf (replybuf, replysize, "Charset not supported"); |
230 | return RESP_NO; | 230 | return RESP_NO; | ... | ... |
... | @@ -47,7 +47,7 @@ status_get_handler (const char *name) | ... | @@ -47,7 +47,7 @@ status_get_handler (const char *name) |
47 | struct status_table *p; | 47 | struct status_table *p; |
48 | 48 | ||
49 | for (p = status_table; p->name; p++) | 49 | for (p = status_table; p->name; p++) |
50 | if (strcmp (p->name, name) == 0) | 50 | if (strcasecmp (p->name, name) == 0) |
51 | return p->fun; | 51 | return p->fun; |
52 | return NULL; | 52 | return NULL; |
53 | } | 53 | } | ... | ... |
-
Please register or sign in to post a comment