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))
|
if (!r.CheckVerifier(key))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// parms.SearchString = @"^[A-Za-z0-9:/-]+\.[A-Za-z0-9:/-]+$"; // match anything looking like a domain or url
|
|
||||||
protocolResp->setSuccess();
|
protocolResp->setSuccess();
|
||||||
protocolResp->setId(r.id());
|
protocolResp->setId(r.id());
|
||||||
protocolResp->setVerifier(key);
|
protocolResp->setVerifier(key);
|
||||||
|
@ -371,6 +371,7 @@ QList<KeepassHttpProtocol::Entry> Service::searchAllEntries(const QString &id)
|
|||||||
if (Database * db = dbWidget->database())
|
if (Database * db = dbWidget->database())
|
||||||
if (Group * rootGroup = db->rootGroup())
|
if (Group * rootGroup = db->rootGroup())
|
||||||
Q_FOREACH (Entry * entry, rootGroup->entriesRecursive())
|
Q_FOREACH (Entry * entry, rootGroup->entriesRecursive())
|
||||||
|
if (!entry->url().isEmpty() || QUrl(entry->title()).isValid())
|
||||||
result << KeepassHttpProtocol::Entry(entry->title(), entry->username(), QString(), entry->uuid().toHex());
|
result << KeepassHttpProtocol::Entry(entry->title(), entry->username(), QString(), entry->uuid().toHex());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user