(fix) sanitize autoReplyEmailAddresses
This commit is contained in:
parent
70e5b1d4aa
commit
6f59955340
|
@ -2084,8 +2084,8 @@ static NSArray *reminderValues = nil;
|
||||||
// Proceed with data sanitization of the "defaults"
|
// Proceed with data sanitization of the "defaults"
|
||||||
if ((v = [o objectForKey: @"defaults"]))
|
if ((v = [o objectForKey: @"defaults"]))
|
||||||
{
|
{
|
||||||
|
NSArray *allKeys, *accounts, *addresses;
|
||||||
NSMutableDictionary *sanitizedLabels;
|
NSMutableDictionary *sanitizedLabels;
|
||||||
NSArray *allKeys, *accounts;
|
|
||||||
NSDictionary *newLabels;
|
NSDictionary *newLabels;
|
||||||
NSString *name;
|
NSString *name;
|
||||||
int i;
|
int i;
|
||||||
|
@ -2115,6 +2115,11 @@ static NSArray *reminderValues = nil;
|
||||||
|
|
||||||
[v setObject: sanitizedLabels forKey: @"SOGoMailLabelsColors"];
|
[v setObject: sanitizedLabels forKey: @"SOGoMailLabelsColors"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We sanitize our autoreply email addresses
|
||||||
|
addresses = [NSArray arrayWithArray: [[[[v objectForKey: @"Vacation"] objectForKey: @"autoReplyEmailAddresses"]
|
||||||
|
componentsSeparatedByString: @","] trimmedComponents]];
|
||||||
|
[[v objectForKey: @"Vacation"] setObject: addresses forKey: @"autoReplyEmailAddresses"];
|
||||||
|
|
||||||
// We sanitize our auxilary mail accounts
|
// We sanitize our auxilary mail accounts
|
||||||
accounts = [v objectForKey: @"AuxiliaryMailAccounts"];
|
accounts = [v objectForKey: @"AuxiliaryMailAccounts"];
|
||||||
|
|
Loading…
Reference in a new issue