diff --git a/OpenChange/MAPIStoreUserContext.m b/OpenChange/MAPIStoreUserContext.m index afcca27ea..4f398fe26 100644 --- a/OpenChange/MAPIStoreUserContext.m +++ b/OpenChange/MAPIStoreUserContext.m @@ -37,6 +37,7 @@ #import #import #import +#import #import #import @@ -291,7 +292,8 @@ static NSMapTable *contextsTable = nil; { /* If "OCSFolderInfoURL" is properly configured, we must have 5 parts in this url. */ - ocFSTableName = [NSString stringWithFormat: @"socfs_%@", username]; + ocFSTableName = [NSString stringWithFormat: @"socfs_%@", + [username asCSSIdentifier]]; [parts replaceObjectAtIndex: 4 withObject: ocFSTableName]; folderTableURL = [NSURL URLWithString: [parts componentsJoinedByString: @"/"]];