Crypto: fix assert failure
commitd53a5328a7c7b1909c09814883d5f571a51199c4
authorJan Kundrát <jkt@kde.org>
Tue, 18 Oct 2016 23:48:11 +0000 (19 01:48 +0200)
committerJan Kundrát <jkt@kde.org>
Tue, 18 Oct 2016 23:48:11 +0000 (19 01:48 +0200)
treebf0519e7cf4c441278d276a7341cc38866a73df3
parentbf1c14b6e50033a0b852c3d81464c6b3862e91c6
Crypto: fix assert failure

When viewing a multipart/encrypted whose cyphertext was Base64-encoded
and deliberately mangled so that it no longer decodes and when the IMAP
server supports BINARY and refuses to provide the (wrong) cyphertext
with [UNKNOWN-CTE], the code was hitting this assert.

Change-Id: I3284318e3ed7fd9129b1f51f855783d22c8c3ed5
src/Gui/PartWidget.cpp