From a7b38dcf930a4f6b7dccfbf44bea5bf763e17cdc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 10 Sep 2015 12:22:12 +0200 Subject: Check for "multipart/" prefix ...instead of full-string compare; regression introduced with c4927a1b76b728b2208c29d09dbf54e70bb26e13 "ByteString->rtl::OString[Buffer]" erroneously replacing a call to ByteString::CompareIgnoreCaseToAscii(s,n) with a call to OString::equalsIgnoreAsciiCase(s,n). Change-Id: I473e3403910e22e43d7350afa88f9a8e103ebf1d --- tools/source/inet/inetmsg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx index ec57d494a049..0a8b84df22a0 100644 --- a/tools/source/inet/inetmsg.cxx +++ b/tools/source/inet/inetmsg.cxx @@ -843,7 +843,7 @@ bool INetMIMEMessage::EnableAttachChild (INetMessageContainerType eType) } // Setup boundary for multipart types. - if (aContentType.toString().equalsIgnoreAsciiCase("multipart/")) + if (aContentType.toString().startsWithIgnoreAsciiCase("multipart/")) { // Generate a unique boundary from current time. sal_Char sTail[16 + 1]; -- cgit