From 9fc6aa568ed0e8e2ea85a43003fee0bab54630cf Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 27 Mar 2008 20:29:33 +0000 Subject: [PATCH] Monotone-Parent: f7df5216f7c3f99825abc96b89456b990ef01f02 Monotone-Revision: 8494d73eddd971425d160f71b9402b3e05217405 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-27T20:29:33 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/AgenorUserDefaults.m | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5d07f8d5c..95b18639c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-27 Wolfgang Sourdeau + * SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults + -primaryFetchProfile]): we unescape the fetched value before + constructing the NSDictionary. + * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor -setComponent:newComponent]): the weeks start on sunday in OpenStep and are indexed from 0. diff --git a/SoObjects/SOGo/AgenorUserDefaults.m b/SoObjects/SOGo/AgenorUserDefaults.m index 156b4ffeb..590b1a55d 100644 --- a/SoObjects/SOGo/AgenorUserDefaults.m +++ b/SoObjects/SOGo/AgenorUserDefaults.m @@ -153,6 +153,10 @@ static NSString *uidColumnName = @"c_uid"; value = [row objectForKey: fieldName]; if ([value isNotNull]) { + value = [value stringByReplacingString: @"''" + withString: @"'"]; + value = [value stringByReplacingString: @"\\\\" + withString: @"\\"]; plistData = [value dataUsingEncoding: NSUTF8StringEncoding]; values = [NSPropertyListSerialization propertyListFromData: plistData