fix(core): avoid appending an empty domain to uid in cache

pull/298/head
Francis Lachapelle 2021-05-14 10:43:07 -04:00
parent 517b8887b4
commit debcbd16db
1 changed files with 1 additions and 1 deletions

View File

@ -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;