mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-16 20:33:19 +00:00
fix(addressbook(dav)): improve handling of addressbook-query
This commit is contained in:
@@ -221,9 +221,9 @@ static NSArray *folderListingFields = nil;
|
||||
qualifier = nil;
|
||||
if ([filter length] > 0)
|
||||
{
|
||||
filter = [filter asSafeSQLLikeString];
|
||||
filter = [[filter asSafeSQLString] stringByReplacingString: @"\%" withString: @"%%"];
|
||||
filters = [NSMutableArray array];
|
||||
filterFormat = [NSString stringWithFormat: @"(%%@ isCaseInsensitiveLike: '%%%%%@%%%%')", filter];
|
||||
filterFormat = [NSString stringWithFormat: @"(%%@ isCaseInsensitiveLike: '*%@*')", filter];
|
||||
if (criteria)
|
||||
criteriaList = [criteria objectEnumerator];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user