Browse Source

IOS-2935 An email with '\' at the end leads to a nil address

IOS-2935
Dirk Zimmermann 4 months ago
parent
commit
cc59213578
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      pantomime-lib/Framework/Pantomime/CWInternetAddress.m

+ 11
- 1
pantomime-lib/Framework/Pantomime/CWInternetAddress.m View File

@ -131,7 +131,17 @@
[self setAddress: theString];
}
return self;
NSString *addressString = self.address;
while ([addressString hasSuffix:@"\\"]) {
addressString = [addressString substringToIndex:addressString.length - 2];
}
if (addressString.length == 0) {
return nil;
} else {
self.address = addressString;
return self;
}
}
//


Loading…
Cancel
Save