From 07dafd697ea33f43df9d4a0e13aa8f877d16e4a6 Mon Sep 17 00:00:00 2001 From: Toni Spets Date: Thu, 23 Mar 2017 06:58:36 +0200 Subject: [PATCH] Treat empty booleans in XML as false --- src/format/KeePass2XmlReader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/format/KeePass2XmlReader.cpp b/src/format/KeePass2XmlReader.cpp index dca387b19..e4ceb1762 100644 --- a/src/format/KeePass2XmlReader.cpp +++ b/src/format/KeePass2XmlReader.cpp @@ -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;