mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-01-08 12:08:00 -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
|
||||
Group = _db.SearchForExactUrl(url);
|
||||
//if no results, search for host (e.g. "accounts.google.com")
|
||||
if (!Group.Entries.Any())
|
||||
Group = _db.SearchForHost(url, false);
|
||||
//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 (!url.StartsWith("androidapp://"))
|
||||
{
|
||||
//if no results, search for host (e.g. "accounts.google.com")
|
||||
if (!Group.Entries.Any())
|
||||
Group = _db.SearchForHost(url, false);
|
||||
//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 (!Group.Entries.Any())
|
||||
Group = _db.SearchForText(url);
|
||||
|
Loading…
Reference in New Issue
Block a user