mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-27 08:45:18 -04:00
Treat empty booleans in XML as false
This commit is contained in:
parent
99036ec151
commit
07dafd697e
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue