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"]; }