diff --git a/ChangeLog b/ChangeLog index 2eae7c69b..6d666bdf8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-10 Ludovic Marcotte + + * UI/Contacts/UIxContactView.m ([UIxContactView -homeUrl]) + ([UIxContactView -workUrl]): prefixes the urls with "http://" if + not already prefixed. + 2008-08-09 Wolfgang Sourdeau * SoObjects/Appointments/SOGoComponentOccurence.m diff --git a/UI/Contacts/UIxContactView.m b/UI/Contacts/UIxContactView.m index 42cfc9649..caed199d9 100644 --- a/UI/Contacts/UIxContactView.m +++ b/UI/Contacts/UIxContactView.m @@ -289,6 +289,10 @@ if ([elements count] > 0) { url = [[elements objectAtIndex: 0] value: 0]; + + if (![[url lowercaseString] hasPrefix: @"http://"]) + url = [NSString stringWithFormat: @"http://%@", url]; + data = [NSString stringWithFormat: @"%@", url, url];