mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 10:32:26 +00:00
fixed #431 Crash on autotype if there are entries with invalid (or empty) urls.
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
/* test for host */
|
||||
if(matchHost && !foundMatch) {
|
||||
NSURL *url = [NSURL URLWithString:entry.url];
|
||||
foundMatch = [windowTitle rangeOfString:url.host options:NSCaseInsensitiveSearch].length != 0;
|
||||
foundMatch = url.host != nil && [windowTitle rangeOfString:url.host options:NSCaseInsensitiveSearch].length != 0;
|
||||
}
|
||||
/* test for tags */
|
||||
if(matchTags && !foundMatch) {
|
||||
|
||||
Reference in New Issue
Block a user