diff --git a/src/Kp2aBusinessLogic/SearchDbHelper.cs b/src/Kp2aBusinessLogic/SearchDbHelper.cs index a51e0b7a..b21d271b 100644 --- a/src/Kp2aBusinessLogic/SearchDbHelper.cs +++ b/src/Kp2aBusinessLogic/SearchDbHelper.cs @@ -138,7 +138,8 @@ namespace keepass2android { continue; } - if (host.IndexOf(otherHost, StringComparison.InvariantCultureIgnoreCase) > -1) + if (string.Equals(host, otherHost, StringComparison.OrdinalIgnoreCase) || + host.EndsWith("." + otherHost, StringComparison.OrdinalIgnoreCase)) { pgResults.AddEntry(entry, false); }