fix hostname matching logic

This commit is contained in:
Sarun Rattanasiri
2025-01-14 17:24:48 +07:00
parent 81b48a3ac2
commit 980df2b3a7

View File

@@ -138,7 +138,8 @@ namespace keepass2android
{ {
continue; continue;
} }
if (host.IndexOf(otherHost, StringComparison.InvariantCultureIgnoreCase) > -1) if (string.Equals(host, otherHost, StringComparison.OrdinalIgnoreCase) ||
host.EndsWith("." + otherHost, StringComparison.OrdinalIgnoreCase))
{ {
pgResults.AddEntry(entry, false); pgResults.AddEntry(entry, false);
} }