Merge pull request #2744 from midnight-wonderer/bug/hostname-matching

Fix hostname matching logic. closes #1926
This commit is contained in:
PhilippC
2025-02-11 12:33:49 +01:00
committed by GitHub

View File

@@ -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);
}