mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-25 03:06:25 +00:00
fix(core): avoid appending an empty domain to uid in cache
This commit is contained in:
@@ -1023,7 +1023,7 @@ static Class NSNullK;
|
||||
{
|
||||
// Remove the "@" prefix used to identified groups in the ACL tables.
|
||||
aUID = [uid hasPrefix: @"@"] ? [uid substringFromIndex: 1] : uid;
|
||||
if (domain && [aUID rangeOfString: @"@"].location == NSNotFound)
|
||||
if ([domain length] && [aUID rangeOfString: @"@"].location == NSNotFound)
|
||||
cacheUid = [NSString stringWithFormat: @"%@@%@", aUID, domain];
|
||||
else
|
||||
cacheUid = aUID;
|
||||
|
||||
Reference in New Issue
Block a user