mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-27 04:18:37 +00:00
Fix a crash in FastAddressBook with non-breaking utf8 spaces. Possibly needs a rework down in belle-sip
This commit is contained in:
parent
e307790d62
commit
4e932d85dd
1 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,8 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSString*)normalizeSipURI:(NSString*)address {
|
+ (NSString*)normalizeSipURI:(NSString*)address {
|
||||||
|
// replace all whitespaces (non-breakable, utf8 nbsp etc.) by the "classical" whitespace
|
||||||
|
address = [[address componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] componentsJoinedByString:@" "];
|
||||||
NSString *normalizedSipAddress = nil;
|
NSString *normalizedSipAddress = nil;
|
||||||
LinphoneAddress* linphoneAddress = linphone_core_interpret_url([LinphoneManager getLc], [address UTF8String]);
|
LinphoneAddress* linphoneAddress = linphone_core_interpret_url([LinphoneManager getLc], [address UTF8String]);
|
||||||
if(linphoneAddress != NULL) {
|
if(linphoneAddress != NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue