generate_boundary generates boundary not correctly parsed by some implementations #13
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mikedilger/mime-multipart#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Result of generate_boundary contains '=' and '/', which is not correctly handle by some multipart implementations.
I have a very simple fix, hopefully you can merge it soon.
github.com/zyddnys/mime-multipart@fc18017579Thanks for pointing this out.
According to this https://www.oreilly.com/library/view/programming-internet-email/9780596802585/ch03s04.html
MIME boundaries should probably only use letters, numbers, and '+'. Standard base64 encoding (as it currently uses) will also generate '/' which is apparently forbidden. So the fix should be replacing '/' with anything (e.g. 'x') and not using the urlsafe variant. If you make that change as a pull request I'll merge it.