mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +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 */
|
/* test for host */
|
||||||
if(matchHost && !foundMatch) {
|
if(matchHost && !foundMatch) {
|
||||||
NSURL *url = [NSURL URLWithString:entry.url];
|
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 */
|
/* test for tags */
|
||||||
if(matchTags && !foundMatch) {
|
if(matchTags && !foundMatch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user