mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-11 23:39:50 -05:00
Simplify the comparison
This commit is contained in:
parent
d2e76058cd
commit
08a911466e
@ -1052,8 +1052,13 @@ bool BrowserService::handleURL(const QString& entryUrl, const QString& url, cons
|
||||
return false;
|
||||
}
|
||||
|
||||
// Filter to match hostname in URL field
|
||||
if (siteQUrl.host().endsWith(entryQUrl.host()) && baseDomain(siteQUrl.host()) == baseDomain(entryQUrl.host())) {
|
||||
// Match the base domain
|
||||
if (baseDomain(siteQUrl.host()) != baseDomain(entryQUrl.host())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Match the subdomains with the limited wildcard
|
||||
if (siteQUrl.host().endsWith(entryQUrl.host())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user