Fix reading non-ASCII passwords that are protected.

Closes #28
This commit is contained in:
Felix Geyer
2012-06-24 18:22:18 +02:00
parent f690522725
commit d0016bf6c4
3 changed files with 8 additions and 1 deletions

View File

@@ -635,7 +635,7 @@ void KeePass2XmlReader::parseEntryString(Entry* entry)
if (isProtected && !value.isEmpty()) {
if (m_randomStream) {
value = m_randomStream->process(QByteArray::fromBase64(value.toAscii()));
value = QString::fromUtf8(m_randomStream->process(QByteArray::fromBase64(value.toAscii())));
}
else {
raiseError(9);