mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-18 14:11:21 +00:00
fix(addressbook(core)): safety check from broken URLs
This commit is contained in:
1 parent
86643b4339
commit
0ceccdd612
1 file changed
+2
-1
@@ -156,7 +156,8 @@
|
||||
url = [NSURL URLWithString: value];
|
||||
if (![url scheme] && [value length] > 0)
|
||||
url = [NSURL URLWithString: [NSString stringWithFormat: @"http://%@", value]];
|
||||
[attrs setObject: [url absoluteString] forKey: @"value"];
|
||||
if (url)
|
||||
[attrs setObject: [url absoluteString] forKey: @"value"];
|
||||
|
||||
[urls addObject: attrs];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user