mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-20 03:58:10 -04:00
Implement KDBX 4.1 PasswordQuality flag
This commit is contained in:
parent
035757e228
commit
ffaeac130f
7 changed files with 25 additions and 5 deletions
|
@ -726,6 +726,10 @@ Entry* KdbxXmlReader::parseEntry(bool history)
|
|||
parseEntryString(entry);
|
||||
continue;
|
||||
}
|
||||
if (m_xml.name() == "QualityCheck") {
|
||||
entry->setExcludeFromReports(!readBool());
|
||||
continue;
|
||||
}
|
||||
if (m_xml.name() == "Binary") {
|
||||
QPair<QString, QString> ref = parseEntryBinary(entry);
|
||||
if (!ref.first.isEmpty() && !ref.second.isEmpty()) {
|
||||
|
@ -747,6 +751,13 @@ Entry* KdbxXmlReader::parseEntry(bool history)
|
|||
}
|
||||
if (m_xml.name() == "CustomData") {
|
||||
parseCustomData(entry->customData());
|
||||
|
||||
// Upgrade pre-KDBX-4.1 password report exclude flag
|
||||
if (entry->customData()->contains(CustomData::ExcludeFromReportsLegacy)) {
|
||||
entry->setExcludeFromReports(entry->customData()->value(CustomData::ExcludeFromReportsLegacy)
|
||||
== TRUE_STR);
|
||||
entry->customData()->remove(CustomData::ExcludeFromReportsLegacy);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
skipCurrentElement();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue