mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-13 10:53:18 +00:00
Monotone-Parent: 995b68ade85d0d884cdf8f6fc87e55f0c376a80c
Monotone-Revision: 61fe02b6c3bc4f0aa3797d661d014d8c256b0de9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-12-30T20:39:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[card release];
|
||||
[photosURL release];
|
||||
[super dealloc];
|
||||
}
|
||||
@@ -377,9 +378,7 @@
|
||||
{
|
||||
NSString *data;
|
||||
|
||||
data = nil;
|
||||
|
||||
if (url)
|
||||
if ([url length] > 0)
|
||||
{
|
||||
if (![[url lowercaseString] rangeOfString: @"://"].length)
|
||||
url = [NSString stringWithFormat: @"http://%@", url];
|
||||
@@ -388,6 +387,8 @@
|
||||
@"<a href=\"%@\" target=\"_blank\">%@</a>",
|
||||
url, url];
|
||||
}
|
||||
else
|
||||
data = nil;
|
||||
|
||||
return [self _cardStringWithLabel: nil value: data];
|
||||
}
|
||||
@@ -646,30 +647,12 @@
|
||||
|
||||
/* action */
|
||||
|
||||
- (id <WOActionResults>) vcardAction
|
||||
{
|
||||
#warning this method is unused
|
||||
WOResponse *response;
|
||||
|
||||
card = [[self clientObject] vCard];
|
||||
if (card)
|
||||
{
|
||||
response = [context response];
|
||||
[response setHeader: @"text/vcard" forKey: @"Content-type"];
|
||||
[response appendContentString: [card versitString]];
|
||||
}
|
||||
else
|
||||
return [NSException exceptionWithHTTPStatus: 404 /* Not Found */
|
||||
reason:@"could not locate contact"];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) defaultAction
|
||||
{
|
||||
card = [[self clientObject] vCard];
|
||||
if (card)
|
||||
{
|
||||
[card retain];
|
||||
phones = nil;
|
||||
homeAdr = nil;
|
||||
workAdr = nil;
|
||||
|
||||
Reference in New Issue
Block a user