From 9a2eb20aff78d34d007dc7073450b73ce0b67caa Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 23 Aug 2007 22:13:12 +0000 Subject: [PATCH] Monotone-Parent: ca2163bc9ead3d33b8626f28648e40de8de6e0e0 Monotone-Revision: d9596f4b43a014a2c792aa15954418eac4a2fe8d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-23T22:13:12 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/Scheduler/UIxAppointmentEditor.m | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b2bf625c1..01ada3ade 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-08-23 Wolfgang Sourdeau + * UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor + -shouldTakeValuesFromRequest:requestinContext:context]): + redesigned method since any method called can be received from a + POST or a GET. Instead we check the method call itself and we + accept only if it has the "save" prefix. + * SoObjects/Appointments/SOGoAptMailNotification.m ([SOGoAptMailNotification -getSubject]): returns the subject an a quoted-printable encoded string, if needed. diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 365cab4e3..f4f041979 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -319,8 +319,12 @@ - (BOOL) shouldTakeValuesFromRequest: (WORequest *) request inContext: (WOContext*) context { + NSString *actionName; + + actionName = [[request requestHandlerPath] lastPathComponent]; + return ([[self clientObject] isKindOfClass: [SOGoAppointmentObject class]] - && [[request method] isEqualToString: @"POST"]); + && [actionName hasPrefix: @"save"]); } - (void) takeValuesFromRequest: (WORequest *) _rq