Also check for RFC-2047 end sequence.

This commit is contained in:
Vincent Richard 2013-03-24 11:24:58 +01:00
parent 84415da8e1
commit 555dcca979

View File

@ -247,7 +247,7 @@ bool wordEncoder::isEncodingNeeded
return true;
// If any RFC-2047 sequence is found in the buffer, encode it
if (buffer.find("=?") != string::npos)
if (buffer.find("=?") != string::npos || buffer.find("?=") != string::npos)
return true;
return false;