mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-16 00:45:26 +00:00
Monotone-Parent: 2b4b283c7442a1f2231c8b06c202bee21abeb77e
Monotone-Revision: 07a4b889932aece040cb23e1968bceb6a917b930 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-09-29T16:43:37 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1143,12 +1143,11 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||
{
|
||||
NSURL *serverURL, *url;
|
||||
NSMutableArray *path;
|
||||
NSString *baseURL, *urlMethod, *fullHost, *part;
|
||||
NSString *baseURL, *urlMethod, *fullHost;
|
||||
NSNumber *port;
|
||||
int count, max;
|
||||
|
||||
serverURL = [context serverURL];
|
||||
baseURL = [self baseURLInContext: context];
|
||||
baseURL = [[self baseURLInContext: context] stringByUnescapingURL];
|
||||
path = [NSMutableArray arrayWithArray: [baseURL componentsSeparatedByString:
|
||||
@"/"]];
|
||||
if ([baseURL hasPrefix: @"http"])
|
||||
@@ -1166,14 +1165,6 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||
[path insertObject: expected atIndex: 2];
|
||||
}
|
||||
|
||||
max = [path count];
|
||||
for (count = 3; count < max; count++)
|
||||
{
|
||||
part = [path objectAtIndex: count];
|
||||
[path replaceObjectAtIndex: count
|
||||
withObject: [part stringByEscapingURLPart]];
|
||||
}
|
||||
|
||||
port = [serverURL port];
|
||||
if (port)
|
||||
fullHost = [NSString stringWithFormat: @"%@:%@",
|
||||
|
||||
Reference in New Issue
Block a user