forked from pool/libvmime
2535eddad7
- Update to new SVN snapshot rev 603 (ZCP 7.0.6 dependency) * Set Diffie-Hellman prime size (bug SF#3434852) OBS-URL: https://build.opensuse.org/request/show/110162 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvmime?expand=0&rev=2
17 lines
515 B
Diff
17 lines
515 B
Diff
--- svn/src/wordEncoder.cpp (revision 603)
|
|
+++ svn/src/wordEncoder.cpp (working copy)
|
|
@@ -239,6 +239,13 @@
|
|
if (buffer.find_first_of("\n\r") != string::npos)
|
|
return true;
|
|
|
|
+ // If the string contains a QP string, we need to encode this.
|
|
+ // Not a 100% check, but we'd only get more encoded strings.
|
|
+ std::string::size_type pos = buffer.find("=?");
|
|
+ std::string::size_type end = buffer.find("?=");
|
|
+ if (pos != string::npos && end != string::npos && end > pos)
|
|
+ return true;
|
|
+
|
|
return false;
|
|
}
|
|
|