From ec27f7e7141c8ddae3450b36344415e98ae8f794 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Tue, 25 Jul 2023 16:08:08 +0200 Subject: [PATCH] fix(user): Replace length with count for NSArray --- SoObjects/SOGo/SOGoUserDefaults.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoUserDefaults.m b/SoObjects/SOGo/SOGoUserDefaults.m index 5073e29b2..b3e4aa7c6 100644 --- a/SoObjects/SOGo/SOGoUserDefaults.m +++ b/SoObjects/SOGo/SOGoUserDefaults.m @@ -804,7 +804,7 @@ NSString *SOGoPasswordRecoverySecondaryEmail = @"SecondaryEmail"; // Remove possible XSS injection mailIdentities = [NSMutableArray arrayWithArray: [self arrayForKey: @"SOGoMailIdentities"]]; - for (i = 0 ; i < [mailIdentities length] ; i++) { + for (i = 0 ; i < [mailIdentities count] ; i++) { mailIdentity = [NSMutableDictionary dictionaryWithDictionary: [mailIdentities objectAtIndex: i]]; if (mailIdentity && [mailIdentity objectForKey: @"fullName"]) { fullName = [NSString stringWithString: [mailIdentity objectForKey: @"fullName"]];