Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

MTOM messages with binary message-parts mallformed after splitMime #24

Open
mannes opened this issue Mar 29, 2017 · 2 comments
Open

MTOM messages with binary message-parts mallformed after splitMime #24

mannes opened this issue Mar 29, 2017 · 2 comments

Comments

@mannes
Copy link

mannes commented Mar 29, 2017

After the splitMime function the content of a message containing a messagepart in binary (using with MTOM xop:Include) will get malformed. In my case a PDF becomes pretty much unreadable (still valid PDF but all images and markup are broken)

I'm pretty sure it's this line causing the problem
https://github.com/zendframework/zend-mime/blob/master/src/Decode.php#L30

It discards any \r character in the entire message, changing the content of the binary attachment and breaking it.

@lvanderree
Copy link

Thanks @mannes I forked the repo with your patch, which I patched some more ;-)
lvanderree@968599a

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-mime; a new issue has been opened at laminas/laminas-mime#4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants