From 93755edba6bbc0baf7d49572076ab1f09562b075 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 10 Aug 2008 17:36:21 +0000 Subject: [PATCH] Monotone-Parent: 8a3a9bbb56064e9a8bfd696d555e89834d3eb4c7 Monotone-Revision: f3d094503824175a3e4f8a2e3b2e72eea5d69e38 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-10T17:36:21 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/Contacts/UIxContactView.m | 4 ++++ 2 files changed, 10 insertions(+) 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];