mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 16:28:51 +00:00
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
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user