#
# old_revision [ba40327d7cdcc284485580a61af95f9056989d40]
#
# patch "UI/Contacts/UIxContactFolderActions.m"
#  from [2a053b17e4cf4dbf46e9ba6cb282d68a2072a5aa]
#    to [4b7bceea09557a1b86608adc7a839d6a5372c87c]
#
============================================================
--- UI/Contacts/UIxContactFolderActions.m	2a053b17e4cf4dbf46e9ba6cb282d68a2072a5aa
+++ UI/Contacts/UIxContactFolderActions.m	4b7bceea09557a1b86608adc7a839d6a5372c87c
@@ -143,7 +143,7 @@
 {
   SOGoContactGCSFolder *folder;
   NSString *key, *value;
-  NSArray *ldifContacts, *lines, *components;
+  NSArray *ldifContacts, *lines;
   NSMutableDictionary *entry;
   NGVCard *vCard;
   NSString *uid;
@@ -167,6 +167,7 @@
       linesCount = [lines count];
       for (j = 0; j < linesCount; j++)
         {
+          NSRange keyValueSeparatorRange;
           NSString *line;
           line = [lines objectAtIndex: j];
 
@@ -189,11 +190,12 @@
               continue;
             }
 
-          components = [line componentsSeparatedByString: @": "];
-          if ([components count] == 2)
+          keyValueSeparatorRange = [line rangeOfString: @": "];
+          if (keyValueSeparatorRange.location != NSNotFound)
             {
-              key = [[components objectAtIndex: 0] lowercaseString];
-              value = [components objectAtIndex: 1];
+              key = [[line substringToIndex: keyValueSeparatorRange.location]
+                      lowercaseString];
+              value = [line substringFromIndex: NSMaxRange(keyValueSeparatorRange)];
 
               if ([key length] == 0)
                 key = @"dn";
