Mercurial > dovecot > core-2.2
changeset 18576:3bcd04bf5635
lib-fts: Use case-sensitive settings comparisons in fts-tokenizer
Dovecot in general doesn't allow case-insensitive settings.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 09 May 2015 13:20:29 +0300 |
parents | 6c284e61013f |
children | 162668a63045 |
files | src/lib-fts/fts-tokenizer-generic.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-fts/fts-tokenizer-generic.c Sat May 09 13:19:21 2015 +0300 +++ b/src/lib-fts/fts-tokenizer-generic.c Sat May 09 13:20:29 2015 +0300 @@ -43,10 +43,10 @@ "Invalid maxlen setting: %s", value); return -1; } - } else if (strcasecmp(key, "algorithm") == 0) { - if (strcasecmp(value, ALGORITHM_TR29_NAME) == 0) + } else if (strcmp(key, "algorithm") == 0) { + if (strcmp(value, ALGORITHM_TR29_NAME) == 0) algo = BOUNDARY_ALGORITHM_TR29; - else if (strcasecmp(value, ALGORITHM_SIMPLE_NAME) == 0) + else if (strcmp(value, ALGORITHM_SIMPLE_NAME) == 0) ; else { *error_r = t_strdup_printf(