mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Filter GetAllLogins entries, to return only entries with an URL.
This commit is contained in:
parent
53b30e267c
commit
db56546871
@ -179,7 +179,6 @@ void Server::getAllLogins(const Request &r, Response *protocolResp)
|
||||
if (!r.CheckVerifier(key))
|
||||
return;
|
||||
|
||||
// parms.SearchString = @"^[A-Za-z0-9:/-]+\.[A-Za-z0-9:/-]+$"; // match anything looking like a domain or url
|
||||
protocolResp->setSuccess();
|
||||
protocolResp->setId(r.id());
|
||||
protocolResp->setVerifier(key);
|
||||
|
@ -371,7 +371,8 @@ QList<KeepassHttpProtocol::Entry> Service::searchAllEntries(const QString &id)
|
||||
if (Database * db = dbWidget->database())
|
||||
if (Group * rootGroup = db->rootGroup())
|
||||
Q_FOREACH (Entry * entry, rootGroup->entriesRecursive())
|
||||
result << KeepassHttpProtocol::Entry(entry->title(), entry->username(), QString(), entry->uuid().toHex());
|
||||
if (!entry->url().isEmpty() || QUrl(entry->title()).isValid())
|
||||
result << KeepassHttpProtocol::Entry(entry->title(), entry->username(), QString(), entry->uuid().toHex());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user