diff --git a/ChangeLog b/ChangeLog index 0ccf8e5de..1eccf202b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-04-13 Wolfgang Sourdeau + + * SoObjects/Appointments/SOGoAppointmentFolder.m (-bareFetchFields: ...), + (-fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:): + restored c-style escaping of sql-style escaping of quote characters. + 2012-04-12 Wolfgang Sourdeau * SoObjects/SOGo/SOGoGCSFolder.m (-componentSQLFilter): new diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 58d847187..e6913e4c5 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -553,7 +553,7 @@ static NSNumber *sharedYes = nil; if ([title length]) [baseWhere addObject: [NSString stringWithFormat: @"c_title isCaseInsensitiveLike: '%%%@%%'", - [title stringByReplacingString: @"'" withString: @"''"]]]; + [title stringByReplacingString: @"'" withString: @"\\'\\'"]]]; if (component) { @@ -1150,7 +1150,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir if ([title length]) [baseWhere addObject: [NSString stringWithFormat: @"c_title isCaseInsensitiveLike: '%%%@%%'", - [title stringByReplacingString: @"'" withString: @"''"]]]; + [title stringByReplacingString: @"'" withString: @"\\'\\'"]]]; if ([filters length]) [baseWhere addObject: [NSString stringWithFormat: @"(%@)", filters]];