Monotone-Parent: 5a279242bcd0a7239b0fee3400fe08b944a04d51

Monotone-Revision: fbaf51f1b9944aee510a816b001f424db9802648

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-06-04T14:42:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-06-04 14:42:50 +00:00
parent 6a9b6e5fd5
commit 82aa341a5f
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -1,5 +1,8 @@
2009-06-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactGCSFolder.m
(-lookupContactsWithFilter:sortBy:ordering:): same as below.
* SoObjects/SOGo/LDAPSource.m: properly escaped user-entered
strings which may contain quotes and thereby mess up the LDAP
queries.
+2 -1
View File
@@ -216,7 +216,8 @@
if (filter && [filter length] > 0)
{
filter = [filter stringByReplacingString: @"'" withString: @"\\'\\'"];
filter = [[filter stringByReplacingString: @"\\" withString: @"\\\\"]
stringByReplacingString: @"'" withString: @"\\'\\'"];
qs = [NSString stringWithFormat:
@"(c_sn isCaseInsensitiveLike: '%@%%') OR "
@"(c_givenname isCaseInsensitiveLike: '%@%%') OR "