Treat empty booleans in XML as false

This commit is contained in:
Toni Spets 2017-03-23 06:58:36 +02:00
parent 99036ec151
commit 07dafd697e

View File

@ -1037,6 +1037,9 @@ bool KeePass2XmlReader::readBool()
else if (str.compare("False", Qt::CaseInsensitive) == 0) {
return false;
}
else if (str.length() == 0) {
return false;
}
else {
raiseError("Invalid bool value");
return false;