Monotone-Parent: 9496b4e93ea47540b21f91ebfbf3be66909f2671

Monotone-Revision: b035c2825534d38c8e7a14fd3abcf362bcbf2888

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-01-08T16:11:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-01-08 16:11:49 +00:00
parent 0b332c44d1
commit 3bf41f721b
2 changed files with 12 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
2007-01-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* 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 <wsourdeau@inverse.ca>
* UI/WebServerResources/SchedulerUI.js: fixed a bug where the

View File

@@ -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: @" </D:prop>\r\n"];
[r appendContentString: @" <D:status>HTTP/1.1 200 OK</D:status>\r\n"];
[r appendContentString: @" </D:propstat>\r\n"];
dataLine
= [NSString
stringWithFormat: @" <C:calendar-data>%@</C:calendar-data>\r\n",
[ocsObject contentAsString]];
[r appendContentString: dataLine];
[r appendContentString: @" <C:calendar-data>"];
calString = [[ocsObject contentAsString] stringByEscapingXMLString];
[r appendContentString: calString];
[r appendContentString: @"</C:calendar-data>\r\n"];
[r appendContentString: @" </D:response>\r\n"];
}