From 7903686fe952797d774d7b67630a1bb2ad7f7000 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 25 Aug 2008 19:22:59 +0000 Subject: [PATCH] Monotone-Parent: 2c8cf5595f147309d3c7bb0d723b5cb49c375fb4 Monotone-Revision: 39a02584d6f552b43a783fc48bc54d99f63c12d0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-25T19:22:59 Monotone-Branch: ca.inverse.sogo --- UI/Contacts/UIxContactEditor.m | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/UI/Contacts/UIxContactEditor.m b/UI/Contacts/UIxContactEditor.m index b886f9dfd..2d8e19c6d 100644 --- a/UI/Contacts/UIxContactEditor.m +++ b/UI/Contacts/UIxContactEditor.m @@ -134,25 +134,26 @@ /* helper */ -- (NSString *)_completeURIForMethod:(NSString *)_method { +- (NSString *) _completeURIForMethod: (NSString *) _method +{ // TODO: this is a DUP of UIxAppointmentEditor NSString *uri; NSRange r; - + uri = [[[self context] request] uri]; - + /* first: identify query parameters */ r = [uri rangeOfString: @"?" options:NSBackwardsSearch]; if (r.length > 0) uri = [uri substringToIndex:r.location]; - + /* next: append trailing slash */ if (![uri hasSuffix: @"/"]) uri = [uri stringByAppendingString: @"/"]; - + /* next: append method */ uri = [uri stringByAppendingString:_method]; - + /* next: append query parameters */ return [self completeHrefForMethod:uri]; }