mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-15 17:27:43 -05:00
Treat empty booleans in XML as false
This commit is contained in:
parent
99036ec151
commit
07dafd697e
@ -1037,6 +1037,9 @@ bool KeePass2XmlReader::readBool()
|
|||||||
else if (str.compare("False", Qt::CaseInsensitive) == 0) {
|
else if (str.compare("False", Qt::CaseInsensitive) == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (str.length() == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
raiseError("Invalid bool value");
|
raiseError("Invalid bool value");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user