Monotone-Parent: 066bfc11f82275269e5bf2cc1cbbf0e9427e8d96

Monotone-Revision: 716ad11e755f3a78bb0353df886cf08096149a36

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-07-10T19:23:39
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-07-10 19:23:39 +00:00
parent 8d1c0726bb
commit 87a3d613b3
5 changed files with 80 additions and 82 deletions
+10 -6
View File
@@ -260,10 +260,12 @@ static BOOL useAltNamespace = NO;
/* check whether URL exists */
sf = [self imap4URL];
sf = [NSURL URLWithString:[[sf path] stringByAppendingPathComponent:_key]
relativeToURL:sf];
sf = [NSURL URLWithString: _key relativeToURL: sf];
// - sf = [NSURL URLWithString:[[sf path] stringByAppendingPathComponent:_key]
// - relativeToURL:sf];
if (![[self imap4Connection] doesMailboxExistAtURL:sf]) {
if (![[self imap4Connection] doesMailboxExistAtURL: sf]) {
/*
We may not return 404, confuses path traversal - but we still do in the
calling method. Probably the traversal process should be fixed to
@@ -351,9 +353,11 @@ static BOOL useAltNamespace = NO;
/* build IMAP4 URL for target */
destImapURL = [_target imap4URL];
destImapURL = [NSURL URLWithString:[[destImapURL path]
stringByAppendingPathComponent:_name]
relativeToURL:destImapURL];
// - destImapURL = [NSURL URLWithString:[[destImapURL path]
// - stringByAppendingPathComponent:_name]
// - relativeToURL:destImapURL];
destImapURL = [NSURL URLWithString: _name
relativeToURL: destImapURL];
[self logWithFormat:@"TODO: should move collection as '%@' to: %@",
[[self imap4URL] absoluteString],