Commit a4f45300 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent a6a3734f
...@@ -1088,6 +1088,7 @@ namespace NSMht ...@@ -1088,6 +1088,7 @@ namespace NSMht
oBuilderA.ClearNoAttack(); oBuilderA.ClearNoAttack();
bool bIs16 = (oInnerFile.m_sContentEncoding.find(Names::code_QuotedPrintable) != std::string::npos) ? true : false; bool bIs16 = (oInnerFile.m_sContentEncoding.find(Names::code_QuotedPrintable) != std::string::npos) ? true : false;
bool bIsBase64 = (oInnerFile.m_sContentEncoding.find(Names::code_Base64) != std::string::npos) ? true : false;
while (i != content.end() && i->find(boundary) == std::string::npos) while (i != content.end() && i->find(boundary) == std::string::npos)
{ {
...@@ -1099,6 +1100,9 @@ namespace NSMht ...@@ -1099,6 +1100,9 @@ namespace NSMht
{ {
oBuilderA.WriteString(*i++); oBuilderA.WriteString(*i++);
} }
if (!bIsBase64)
oBuilderA.AddCharSafe('\n');
} }
oInnerFile.m_sData = oBuilderA.GetData(); oInnerFile.m_sData = oBuilderA.GetData();
oInnerFile.CorrectType(); oInnerFile.CorrectType();
...@@ -1163,6 +1167,7 @@ namespace NSMht ...@@ -1163,6 +1167,7 @@ namespace NSMht
oBuilderA.ClearNoAttack(); oBuilderA.ClearNoAttack();
bool bIs16 = (oInnerFile.m_sContentEncoding.find(Names::code_QuotedPrintable) != std::string::npos) ? true : false; bool bIs16 = (oInnerFile.m_sContentEncoding.find(Names::code_QuotedPrintable) != std::string::npos) ? true : false;
bool bIsBase64 = (oInnerFile.m_sContentEncoding.find(Names::code_Base64) != std::string::npos) ? true : false;
while (i != content.end() && i->find(boundary) == std::string::npos) while (i != content.end() && i->find(boundary) == std::string::npos)
{ {
...@@ -1174,6 +1179,9 @@ namespace NSMht ...@@ -1174,6 +1179,9 @@ namespace NSMht
{ {
oBuilderA.WriteString(*i++); oBuilderA.WriteString(*i++);
} }
if (!bIsBase64)
oBuilderA.AddCharSafe('\n');
} }
oInnerFile.m_sData = oBuilderA.GetData(); oInnerFile.m_sData = oBuilderA.GetData();
oInnerFile.CorrectType(); oInnerFile.CorrectType();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment