mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 12:30:31 +00:00
Revert "Merge pull request #2 from Zentyal/jgarcia/fix-encoding-of-mapistoreuris"
This commit is contained in:
1 parent
f76a6cfc96
commit
1a2fe8908b
2 files changed
+8
-6
No files matched your search
@@ -365,21 +365,23 @@ static inline NSURL *CompleteURLFromMapistoreURI (const char *uri)
|
||||
{
|
||||
int rc;
|
||||
NSString *objectURL, *url;
|
||||
// TDB_DATA key, dbuf;
|
||||
|
||||
url = [contextUrl absoluteString];
|
||||
url = [[contextUrl absoluteString]
|
||||
stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
|
||||
objectURL = [[userContext mapping] urlFromID: fmid];
|
||||
if (objectURL)
|
||||
{
|
||||
if ([objectURL hasPrefix: url])
|
||||
{
|
||||
*path = [[objectURL substringFromIndex: 7] asUnicodeInMemCtx: memCtx];
|
||||
[self logWithFormat: @"found path '%s' for fmid 0x%.16"PRIx64"", *path, fmid];
|
||||
[self logWithFormat: @"found path '%s' for fmid 0x%.16"PRIx64"", *path, fmid];
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
[self logWithFormat: @"context (%@, %@) does not contain "
|
||||
@"found fmid: 0x%.16"PRIx64"", objectURL, url, fmid];
|
||||
[self logWithFormat: @"context (%@, %@) does not contain "
|
||||
@"found fmid: 0x%.16"PRIx64"", objectURL, url, fmid];
|
||||
*path = NULL;
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user