mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Remove title matching
This commit is contained in:
parent
e825b55a99
commit
fc8e0e7b19
@ -375,14 +375,11 @@ QList<Entry*> BrowserService::searchEntries(Database* db, const QString& hostnam
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Entry* entry : EntrySearcher().search(hostname, rootGroup, Qt::CaseInsensitive)) {
|
for (Entry* entry : EntrySearcher().search(hostname, rootGroup, Qt::CaseInsensitive)) {
|
||||||
QString title = entry->title();
|
|
||||||
QString url = entry->url();
|
QString url = entry->url();
|
||||||
|
|
||||||
// Filter to match hostname in Title and Url fields
|
// Filter to match hostname in URL field
|
||||||
if ((!title.isEmpty() && hostname.contains(title))
|
if ((!url.isEmpty() && hostname.contains(url))
|
||||||
|| (!url.isEmpty() && hostname.contains(url))
|
|| (matchUrlScheme(url) && hostname.endsWith(QUrl(url).host()))) {
|
||||||
|| (matchUrlScheme(title) && hostname.endsWith(QUrl(title).host()))
|
|
||||||
|| (matchUrlScheme(url) && hostname.endsWith(QUrl(url).host())) ) {
|
|
||||||
entries.append(entry);
|
entries.append(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user