mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-01 00:19:45 +00:00
Monotone-Parent: d537d152064e4fd06ac7b263bf3d3b3738715291
Monotone-Revision: ea6bc80cdabf55c83e6df32dd1aaa4ecfa16a6e1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-06-12T14:41:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2012-06-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoGroup.m
|
||||
(+groupWithValue:andSourceSelector:inDomain:): handle the case
|
||||
the value of "objectclass" is actually an NSString instance,
|
||||
otherwise causing a crash with the NSArray methods.
|
||||
|
||||
2012-06-04 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/UIxFilterEditor.js (savePreferences):
|
||||
|
||||
@@ -170,13 +170,24 @@
|
||||
|
||||
if (classes)
|
||||
{
|
||||
int i, c;
|
||||
/* LDAP records returned as dictionaries may contain NSString or
|
||||
NSArray values, depending on whether the amount of values
|
||||
assigned to a key is 1 or more. Since this can occur with
|
||||
"objectclass" too, we need to check whether "classes" is actually
|
||||
an NSString instance... */
|
||||
if ([classes isKindOfClass: [NSString class]])
|
||||
classes = [NSArray arrayWithObject:
|
||||
[(NSString *) classes lowercaseString]];
|
||||
else
|
||||
{
|
||||
int i, c;
|
||||
|
||||
classes = [NSMutableArray arrayWithArray: classes];
|
||||
c = [classes count];
|
||||
for (i = 0; i < c; i++)
|
||||
[(id)classes replaceObjectAtIndex: i
|
||||
withObject: [[classes objectAtIndex: i] lowercaseString]];
|
||||
classes = [NSMutableArray arrayWithArray: classes];
|
||||
c = [classes count];
|
||||
for (i = 0; i < c; i++)
|
||||
[(id)classes replaceObjectAtIndex: i
|
||||
withObject: [[classes objectAtIndex: i] lowercaseString]];
|
||||
}
|
||||
}
|
||||
|
||||
// Found a group, let's return it.
|
||||
|
||||
Reference in New Issue
Block a user