From 3bf41f721b028baf9ce8d8dd4d9ee077c3d1774e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 8 Jan 2007 16:11:49 +0000 Subject: [PATCH] Monotone-Parent: 9496b4e93ea47540b21f91ebfbf3be66909f2671 Monotone-Revision: b035c2825534d38c8e7a14fd3abcf362bcbf2888 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-08T16:11:49 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ SoObjects/Appointments/SOGoAppointmentFolder.m | 13 +++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c14f2e4e..5b20db642 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-01-08 Wolfgang Sourdeau + + * SoObjects/Appointments/SOGoAppointmentFolder.m + ([SOGoAppointmentFolder + -appendObject:objectwithBaseURL:baseURLtoREPORTResponse:r]): + escape the record string in a way suitable with XML encoding. + 2007-01-05 Wolfgang Sourdeau * UI/WebServerResources/SchedulerUI.js: fixed a bug where the diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index 3d39ef3ad..9cbda1823 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -134,7 +134,7 @@ static NSNumber *sharedYes = nil; toREPORTResponse: (WOResponse *) r { SOGoContentObject *ocsObject; - NSString *c_name, *etagLine, *dataLine; + NSString *c_name, *etagLine, *calString; c_name = [object objectForKey: @"c_name"]; @@ -157,13 +157,10 @@ static NSNumber *sharedYes = nil; [r appendContentString: @" \r\n"]; [r appendContentString: @" HTTP/1.1 200 OK\r\n"]; [r appendContentString: @" \r\n"]; - - dataLine - = [NSString - stringWithFormat: @" %@\r\n", - [ocsObject contentAsString]]; - [r appendContentString: dataLine]; - + [r appendContentString: @" "]; + calString = [[ocsObject contentAsString] stringByEscapingXMLString]; + [r appendContentString: calString]; + [r appendContentString: @"\r\n"]; [r appendContentString: @" \r\n"]; }