Monotone-Parent: ebba4da6ea34dfe0e2ef6576595708fef8f31a5a

Monotone-Revision: 77f1091c06783593dcf99f904ee435606622847d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-20T14:07:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-08-20 14:07:32 +00:00
parent dcb8b9a1bb
commit 4eb18f593b
4 changed files with 24 additions and 8 deletions
+6 -3
View File
@@ -1765,7 +1765,7 @@ static NSArray *childRecordFields = nil;
- (NSDictionary *) _deduceObjectNamesFromURLs: (NSArray *) urls
{
unsigned int count, max;
NSString *url, *componentURLPath, *cName, *baseURLString;
NSString *url, *currentURL, *componentURLPath, *cName, *baseURLString;
NSMutableDictionary *cNames;
NSURL *componentURL, *baseURL;
NSArray *urlComponents;
@@ -1777,9 +1777,12 @@ static NSArray *childRecordFields = nil;
for (count = 0; count < max; count++)
{
currentURL
= [[urls objectAtIndex: count] stringByReplacingString: @"%40"
withString: @"@"];
url = [NSString stringWithFormat: @"%@/%@",
[[urls objectAtIndex: count] stringByDeletingLastPathComponent],
[[[urls objectAtIndex: count] lastPathComponent] stringByEscapingURL]];
[currentURL stringByDeletingLastPathComponent],
[[currentURL lastPathComponent] stringByEscapingURL]];
componentURL = [[NSURL URLWithString: url relativeToURL: baseURL]
standardizedURL];
componentURLPath = [componentURL absoluteString];