From 89494bf41a7060fb9b2a6c68d1ef8f2125aa0cf9 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Wed, 3 Jun 2009 09:32:13 +0000 Subject: [PATCH] Fix signatures not being verified correctly. Patch by Till, thanks! MERGE: 4.4 svn path=/branches/kdepim/enterprise4/kdepim/; revision=976996 --- objecttreeparser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/objecttreeparser.cpp b/objecttreeparser.cpp index b64420a77..0838aae8a 100644 --- a/objecttreeparser.cpp +++ b/objecttreeparser.cpp @@ -481,7 +481,6 @@ namespace KMail { // PENDING(marc) cryptProto = 0 here? } else { QByteArray plainData = cleartext; - plainData.resize( cleartext.size() - 1 ); VerifyDetachedBodyPartMemento * newM = new VerifyDetachedBodyPartMemento( job, cryptProto->keyListJob(), signaturetext, plainData ); if ( allowAsync() ) { @@ -541,8 +540,7 @@ namespace KMail { if ( m ) { result = m->verifyResult(); - const QByteArray & plainData = m->plainText(); - cleartext = QByteArray( plainData.data(), plainData.size() + 1 ); + cleartext = m->plainText(); messagePart.auditLogError = m->auditLogError(); messagePart.auditLog = m->auditLogAsHtml(); key = m->signingKey();