mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-26 00:43:22 +00:00
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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user