fix(core): avoid appending an empty domain to uid in cache
parent
517b8887b4
commit
debcbd16db
|
@ -1023,7 +1023,7 @@ static Class NSNullK;
|
||||||
{
|
{
|
||||||
// Remove the "@" prefix used to identified groups in the ACL tables.
|
// Remove the "@" prefix used to identified groups in the ACL tables.
|
||||||
aUID = [uid hasPrefix: @"@"] ? [uid substringFromIndex: 1] : uid;
|
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];
|
cacheUid = [NSString stringWithFormat: @"%@@%@", aUID, domain];
|
||||||
else
|
else
|
||||||
cacheUid = aUID;
|
cacheUid = aUID;
|
||||||
|
|
Loading…
Reference in New Issue