From 63d79c031d45008cc96a2635816bb113681b1b8e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 21 Jan 2009 16:20:11 +0000 Subject: [PATCH] Monotone-Parent: 21911317257c6ad395e78e56a3d125fc4be404e6 Monotone-Revision: 5352547fba6d82f422f3bb300b39427b9ebf5653 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-01-21T16:20:11 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 11 +++++++++++ SoObjects/SOGo/SOGoGCSFolder.m | 3 +++ UI/Common/WODirectAction+SOGo.m | 8 +++++++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 448b6ac19..8d40a38e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2009-01-21 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder + -subscribe:reallyDoinTheNamesOf:delegatedUsersfromMailInvitation:isMailInvitationinContext:localContext]): + explicitly set the content-type of the response to text/plain with + charset='utf-8' to work-around a bug in Firefox, complaining about + a hypothetical text/xml content he does not receive. + * UI/Common/WODirectAction+SOGo.m ([WODirectAction + -responseWith204]): + same as above. + 2009-01-19 Ludovic Marcotte * Main/SOGo.m diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index 88840eb2d..4339f240e 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -671,6 +671,9 @@ static NSArray *childRecordFields = nil; SOGoUser *currentUser; response = [localContext response]; + [response setHeader: @"text/plain; charset=utf-8" + forKey: @"Content-Type"]; + currentUser = [localContext activeUser]; if (delegatedUsers && [delegatedUsers count]) diff --git a/UI/Common/WODirectAction+SOGo.m b/UI/Common/WODirectAction+SOGo.m index fd812e53c..91b406db3 100644 --- a/UI/Common/WODirectAction+SOGo.m +++ b/UI/Common/WODirectAction+SOGo.m @@ -63,7 +63,13 @@ - (WOResponse *) responseWith204 { - return [self responseWithStatus: 204]; + WOResponse *response; + + response = [self responseWithStatus: 204]; + [response setHeader: @"text/plain; charset=utf-8" + forKey: @"Content-Type"]; + + return response; } - (WOResponse *) redirectToLocation: (NSString *) newLocation