From: Christian Brabandt Date: Thu, 13 Dec 2012 11:46:14 +0000 (+0100) Subject: ldif: According to RFC 2849, LDIF field names are not case-sensitive. X-Git-Tag: upstream/0.6.1~2^2~36 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=32493eb9a526426a991f5746200387d54a4eee3a;p=pkg%2Fabook.git ldif: According to RFC 2849, LDIF field names are not case-sensitive. See: * http://permalink.gmane.org/gmane.comp.tools.abook.devel/39 * http://article.gmane.org/gmane.mail.mutt.user/39770 --- diff --git a/filter.c b/filter.c index 13a0234..214a1f5 100644 --- a/filter.c +++ b/filter.c @@ -631,8 +631,8 @@ ldif_convert(ldif_item item, char *type, char *value) } for(i=0; i < LDIF_ITEM_FIELDS; i++) { - if(!safe_strcmp(ldif_field_names[i], type) && *value) { - if(i == LDIF_ITEM_FIELDS - 1) /* this is a dirty hack */ + if(!strcasecmp(ldif_field_names[i], type) && *value) { + if(i == LDIF_ITEM_FIELDS - 1) /* this is a dirty hack */ if(safe_strcmp("person", value)) break;