dovecot-2.0: istream-header-filter: Fixed header name validation...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 17 20:10:49 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/e7299f187938
changeset: 12437:e7299f187938
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 17 18:10:46 2010 +0000
description:
istream-header-filter: Fixed header name validation to use case-insensitive comparison.
diffstat:
src/lib-mail/istream-header-filter.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r aec1f1614028 -r e7299f187938 src/lib-mail/istream-header-filter.c
--- a/src/lib-mail/istream-header-filter.c Wed Nov 17 17:52:52 2010 +0000
+++ b/src/lib-mail/istream-header-filter.c Wed Nov 17 18:10:46 2010 +0000
@@ -512,7 +512,8 @@
mstream->headers = headers_count == 0 ? NULL :
p_new(mstream->pool, const char *, headers_count);
for (i = j = 0; i < headers_count; i++) {
- ret = j == 0 ? -1 : strcmp(mstream->headers[j-1], headers[i]);
+ ret = j == 0 ? -1 :
+ strcasecmp(mstream->headers[j-1], headers[i]);
if (ret == 0) {
/* drop duplicate */
continue;
More information about the dovecot-cvs
mailing list