mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-01-09 12:38:02 -05:00
avoid searching for host (with or without subdomains) for androidapp:// queries
This commit is contained in:
parent
c6cd5123c8
commit
6fa4806e81
@ -99,12 +99,16 @@ namespace keepass2android
|
|||||||
{
|
{
|
||||||
//first: search for exact url
|
//first: search for exact url
|
||||||
Group = _db.SearchForExactUrl(url);
|
Group = _db.SearchForExactUrl(url);
|
||||||
//if no results, search for host (e.g. "accounts.google.com")
|
if (!url.StartsWith("androidapp://"))
|
||||||
if (!Group.Entries.Any())
|
{
|
||||||
Group = _db.SearchForHost(url, false);
|
//if no results, search for host (e.g. "accounts.google.com")
|
||||||
//if still no results, search for host, allowing subdomains ("www.google.com" in entry is ok for "accounts.google.com" in search (but not the other way around)
|
if (!Group.Entries.Any())
|
||||||
if (!Group.Entries.Any())
|
Group = _db.SearchForHost(url, false);
|
||||||
Group = _db.SearchForHost(url, true);
|
//if still no results, search for host, allowing subdomains ("www.google.com" in entry is ok for "accounts.google.com" in search (but not the other way around)
|
||||||
|
if (!Group.Entries.Any())
|
||||||
|
Group = _db.SearchForHost(url, true);
|
||||||
|
|
||||||
|
}
|
||||||
//if no results returned up to now, try to search through other fields as well:
|
//if no results returned up to now, try to search through other fields as well:
|
||||||
if (!Group.Entries.Any())
|
if (!Group.Entries.Any())
|
||||||
Group = _db.SearchForText(url);
|
Group = _db.SearchForText(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user