(fix) don't add the domain if already in the uid

pull/89/head
Ludovic Marcotte 2015-06-09 09:46:38 -04:00
parent b93cbeee26
commit aa623c5171
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@
if (!activeUserIsInDomain || ![uid isEqualToString: login])
{
jsonLine = [NSMutableArray arrayWithCapacity: 4];
if ([domain length])
if ([domain length] && [uid rangeOfString: @"@"].location == NSNotFound)
uid = [NSString stringWithFormat: @"%@@%@", uid, domain];
[jsonLine addObject: uid];
[jsonLine addObject: [contact objectForKey: @"cn"]];