]> git.deb.at Git - pkg/abook.git/commitdiff
ldif: According to RFC 2849, LDIF field names are not case-sensitive.
authorChristian Brabandt <cblists@256bit.org>
Thu, 13 Dec 2012 11:46:14 +0000 (12:46 +0100)
committerRaphaël Droz <raphael.droz+floss@gmail.com>
Thu, 13 Dec 2012 15:57:19 +0000 (16:57 +0100)
See:
* http://permalink.gmane.org/gmane.comp.tools.abook.devel/39
* http://article.gmane.org/gmane.mail.mutt.user/39770

filter.c

index 13a02344a915195602db411b89b12d99ca77a9ad..214a1f55f8bb3a064c21ff668ce75aa60ed13ee1 100644 (file)
--- 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;