0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 04:12:15 +02:00

Browser: Check for expired entry prior to custom data

* Fixes #4881
This commit is contained in:
Jonathan White 2020-06-19 18:46:49 -04:00
parent 1becb6137a
commit c46f3d37b1

View File

@ -847,13 +847,14 @@ QJsonObject BrowserService::prepareEntry(const Entry* entry)
BrowserService::Access
BrowserService::checkAccess(const Entry* entry, const QString& host, const QString& submitHost, const QString& realm)
{
if (entry->isExpired()) {
return browserSettings()->allowExpiredCredentials() ? Allowed : Denied;
}
BrowserEntryConfig config;
if (!config.load(entry)) {
return Unknown;
}
if (entry->isExpired()) {
return browserSettings()->allowExpiredCredentials() ? Allowed : Denied;
}
if ((config.isAllowed(host)) && (submitHost.isEmpty() || config.isAllowed(submitHost))) {
return Allowed;
}