mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-23 13:11:12 -05:00
Fix base domain matching
This commit is contained in:
parent
6f9907a3cb
commit
d2e76058cd
@ -1053,7 +1053,7 @@ bool BrowserService::handleURL(const QString& entryUrl, const QString& url, cons
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Filter to match hostname in URL field
|
// Filter to match hostname in URL field
|
||||||
if (siteQUrl.host().endsWith(entryQUrl.host())) {
|
if (siteQUrl.host().endsWith(entryQUrl.host()) && baseDomain(siteQUrl.host()) == baseDomain(entryQUrl.host())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,7 +298,8 @@ void TestBrowser::testSubdomainsAndPaths()
|
|||||||
"http://login.github.com/pathtonowhere",
|
"http://login.github.com/pathtonowhere",
|
||||||
".github.com", // Invalid URL
|
".github.com", // Invalid URL
|
||||||
"www.github.com/",
|
"www.github.com/",
|
||||||
"https://github" // Invalid URL
|
"https://github", // Invalid URL
|
||||||
|
"https://hub.com" // Should not return
|
||||||
};
|
};
|
||||||
|
|
||||||
createEntries(urls, root);
|
createEntries(urls, root);
|
||||||
|
Loading…
Reference in New Issue
Block a user