From debcbd16db64cdd2fd3047d3eec2fc24ca6cd788 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 14 May 2021 10:43:07 -0400 Subject: [PATCH] fix(core): avoid appending an empty domain to uid in cache --- SoObjects/SOGo/SOGoUserManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoUserManager.m b/SoObjects/SOGo/SOGoUserManager.m index e2ea77d77..ae323b8cc 100644 --- a/SoObjects/SOGo/SOGoUserManager.m +++ b/SoObjects/SOGo/SOGoUserManager.m @@ -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;