coheigea opened a new pull request, #3750: URL: https://github.com/apache/cxf/pull/3750
AttachmentSerializer.writeHeaders URL-decodes a cid: Content-ID (and an encoded domain part of a plain Content-ID) before writing it into the MIME part headers, but did not strip line breaks from the result. An attachment ID containing %0D%0A therefore decoded into a raw CR/LF, allowing extra MIME headers to be injected. The same applied to a raw CR/LF in a Content-ID, and to the attachment's Content-Type. The existing stripLineBreaks() helper, already used for the other attachment headers, is now applied to the decoded Content-ID and to the Content-Type. A plain Content-ID without an '@' is URL-encoded and so is unaffected. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
