From 9075d68603feb2a05faa8b2aeabda9410f025138 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 10 May 2011 18:33:46 +0000 Subject: [PATCH] More fix regarding previous commit Monotone-Parent: a218827fb530f29cfabc1b1814e47476cbf2cf65 Monotone-Revision: 3938b204572bfb06b45e8d36179adb6d88d724e6 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-05-10T18:33:46 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/NSDictionary+Utilities.m | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/SoObjects/SOGo/NSDictionary+Utilities.m b/SoObjects/SOGo/NSDictionary+Utilities.m index 4ea7469c2..ae7603170 100644 --- a/SoObjects/SOGo/NSDictionary+Utilities.m +++ b/SoObjects/SOGo/NSDictionary+Utilities.m @@ -114,11 +114,14 @@ value: (NSString *) value toString: (NSMutableString *) ldifString { - if ([value _isLDIFSafe]) - [ldifString appendFormat: @"%@: %@\n", key, value]; - else - [ldifString appendFormat: @"%@:: %@\n", - key, [value stringByEncodingBase64]]; + if ([value isKindOfClass: [NSString class]]) + { + if ([value _isLDIFSafe]) + [ldifString appendFormat: @"%@: %@\n", key, value]; + else + [ldifString appendFormat: @"%@:: %@\n", + key, [value stringByEncodingBase64]]; + } } - (void) _appendLDIFKey: (NSString *) key @@ -174,7 +177,8 @@ || [currentKey isEqualToString: @"dn"] || [currentKey isEqualToString: @"isGroup"] || [currentKey isEqualToString: @"isResource"] - || [currentKey isEqualToString: @"numberOfSimultaneousBookings"])) + || [currentKey isEqualToString: @"numberOfSimultaneousBookings"] + || [currentKey isEqualToString: @"canAuthenticate"])) [self _appendLDIFKey: currentKey toString: ldifString]; }