dovecot-2.1: fts-solr: Make sure header name is lowercased in se...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jan 10 02:27:33 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/075591a4b6a8
changeset: 13919:075591a4b6a8
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 10 02:27:26 2012 +0200
description:
fts-solr: Make sure header name is lowercased in search queries.
diffstat:
src/plugins/fts-solr/fts-backend-solr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r dd48e9094efb -r 075591a4b6a8 src/plugins/fts-solr/fts-backend-solr.c
--- a/src/plugins/fts-solr/fts-backend-solr.c Tue Jan 10 00:34:09 2012 +0200
+++ b/src/plugins/fts-solr/fts-backend-solr.c Tue Jan 10 02:27:26 2012 +0200
@@ -600,7 +600,7 @@
if (arg->match_not)
str_append_c(str, '-');
- str_append(str, arg->hdr_field_name);
+ str_append(str, t_str_lcase(arg->hdr_field_name));
str_append_c(str, ':');
solr_add_str_arg(str, arg);
break;
@@ -656,7 +656,7 @@
solr_quote_http(str, arg->value.str);
else {
/* checking potential existence of the header name */
- solr_quote_http(str, arg->hdr_field_name);
+ solr_quote_http(str, t_str_lcase(arg->hdr_field_name));
}
break;
default:
More information about the dovecot-cvs
mailing list