From e77aba5bd6ee25536b866946247f23429088c874 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 26 Nov 2009 20:44:58 +0000 Subject: [PATCH] Monotone-Parent: e862ec9df7a40d9361fca6b959f96c844ff74060 Monotone-Revision: 281488f5ccd9072f8845d50a816057f4a181d5b9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-26T20:44:58 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 2 ++ SoObjects/SOGo/SOGoUserDefaults.m | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21a7f0841..b8ca1bcd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * SoObjects/SOGo/SOGoUserDefaults.m (-synchronize): avoid fetching the values from the database/the cache when they are successfully stored. + (-fetchJSONProfileFromDB): sql-quoted quote characters do not + apply here. Therefore we no longer need to unescape them. * SoObjects/SOGo/SOGoCache.m (_cacheValues:ofType:forLogin:): we also fill the local cache with the new value to avoid ignoring it diff --git a/SoObjects/SOGo/SOGoUserDefaults.m b/SoObjects/SOGo/SOGoUserDefaults.m index 55472cc50..9b0f6c911 100644 --- a/SoObjects/SOGo/SOGoUserDefaults.m +++ b/SoObjects/SOGo/SOGoUserDefaults.m @@ -136,8 +136,8 @@ static NSString *uidColumnName = @"c_uid"; if ([value isNotNull]) { defFlags.isNew = NO; -#warning The result is supposed to be unescaped, why re-unescaping it here ? - value = [value stringByReplacingString: @"''" withString: @"'"]; + /* The following enables the restitution of coded unicode (\U1234) + characters with the Oracle adaptor. */ value = [value stringByReplacingString: @"\\\\" withString: @"\\"]; } else