aboutsummaryrefslogtreecommitdiffstats
path: root/src/wordEncoder.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-03-24 10:24:58 +0000
committerVincent Richard <[email protected]>2013-03-24 10:24:58 +0000
commit555dcca979d3fc99af1575b863e9732ec0487eaf (patch)
tree80b0c238c27071a3dc2a5b25159fdebbebb5f238 /src/wordEncoder.cpp
parentFixed parsing header field value on next line. (diff)
downloadvmime-555dcca979d3fc99af1575b863e9732ec0487eaf.tar.gz
vmime-555dcca979d3fc99af1575b863e9732ec0487eaf.zip
Also check for RFC-2047 end sequence.
Diffstat (limited to 'src/wordEncoder.cpp')
-rw-r--r--src/wordEncoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wordEncoder.cpp b/src/wordEncoder.cpp
index 82a74cff..332f9bf2 100644
--- a/src/wordEncoder.cpp
+++ b/src/wordEncoder.cpp
@@ -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;