diff options
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/inet/inetstrm.cxx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index fb373b2c3632..c9258bea0117 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -237,6 +237,7 @@ public: ByteString& EraseLeadingChars( sal_Char c = ' ' ); ByteString& EraseTrailingChars( sal_Char c = ' ' ); ByteString& EraseLeadingAndTrailingChars( sal_Char c = ' ' ); + ByteString& ConvertLineEnd( LineEnd eLineEnd ); ByteString& ConvertLineEnd() { return ConvertLineEnd( GetSystemLineEnd() ); } diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index a11f22d4712c..eadeec566a2e 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -1620,8 +1620,8 @@ int INetMIMEMessageStream::PutMsgLine (const sal_Char *pData, sal_uIntPtr nSize) sal_uInt16 nPos = aLowerType.Search ("boundary="); ByteString aBoundary(aType.copy(nPos + 9)); - aBoundary.EraseLeadingAndTrailingChars (' '); - aBoundary.EraseLeadingAndTrailingChars ('"'); + aBoundary = comphelper::string::strip(aBoundary, ' '); + aBoundary = comphelper::string::strip(aBoundary, '"'); // Save boundary. pMsg->SetMultipartBoundary (aBoundary); |