dovecot-2.2: lib-storage: Verify that with SEARCH HEADER the hea...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jun 24 20:57:39 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/03ea2388bb27
changeset: 14638:03ea2388bb27
user: Timo Sirainen <tss at iki.fi>
date: Wed May 23 00:24:06 2012 +0300
description:
lib-storage: Verify that with SEARCH HEADER the header name is valid UTF-8.
diffstat:
src/lib-storage/mail-search-register-imap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r dbe6d05fd595 -r 03ea2388bb27 src/lib-storage/mail-search-register-imap.c
--- a/src/lib-storage/mail-search-register-imap.c Sun May 20 03:08:01 2012 +0300
+++ b/src/lib-storage/mail-search-register-imap.c Wed May 23 00:24:06 2012 +0300
@@ -259,6 +259,8 @@
/* <hdr-name> <string> */
if (mail_search_parse_string(ctx->parser, &hdr_name) < 0)
return NULL;
+ if (mail_search_build_get_utf8(ctx, hdr_name, &hdr_name) < 0)
+ return NULL;
return arg_new_header(ctx, SEARCH_HEADER, t_str_ucase(hdr_name));
}
More information about the dovecot-cvs
mailing list